Skip to content

Conversation

Stick404
Copy link

Replaced knownPositions with 2 Block Positions, so a AABB list would not need to be saved and loaded.
Made reachedPositions into a long; this is to remove a chunk ban and memory leak issue that happen when a Spell Circle loops for too long.

Decreased saving/loading times
…that was made obsolete by Playerless Casting
@Stick404 Stick404 mentioned this pull request Jul 16, 2025
…ptimization

# Conflicts:
#	Common/src/main/java/at/petrak/hexcasting/common/blocks/circles/impetuses/BlockEntityRedstoneImpetus.java
public BlockPos currentPos;
public Direction enteredFrom;
public CastingImage currentImage;
public @Nullable UUID caster;
public @Nullable FrozenPigment casterPigment;
// This controls the speed of the current slate

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

variable names aren't too descriptive here, something better might be slateWait, and greaterCorner / lesserCorner

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, fixed this. The reachedSlate is just a number of how many slates it has ran, so I feel like changing it to slateWait is not the greatest option? But did change the corners to be more descriptive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

Successfully merging this pull request may close these issues.

2 participants