diff --git a/src/main/java/com/jozufozu/flywheel/core/AtlasStitcher.java b/src/main/java/com/jozufozu/flywheel/core/AtlasStitcher.java index ef71f9366..2fbb4bc81 100644 --- a/src/main/java/com/jozufozu/flywheel/core/AtlasStitcher.java +++ b/src/main/java/com/jozufozu/flywheel/core/AtlasStitcher.java @@ -33,6 +33,7 @@ public class AtlasStitcher { .equals(PlayerContainer.BLOCK_ATLAS_TEXTURE)) return; + sprites.forEach(StitchedSprite::reset); sprites.stream() .map(StitchedSprite::getLoc) .forEach(event::addSprite); diff --git a/src/main/java/com/jozufozu/flywheel/core/StitchedSprite.java b/src/main/java/com/jozufozu/flywheel/core/StitchedSprite.java index b9536b7ec..7f1d0b0e6 100644 --- a/src/main/java/com/jozufozu/flywheel/core/StitchedSprite.java +++ b/src/main/java/com/jozufozu/flywheel/core/StitchedSprite.java @@ -11,7 +11,7 @@ public class StitchedSprite { TextureAtlasSprite sprite; - public StitchedSprite(ResourceLocation loc) { + StitchedSprite(ResourceLocation loc) { this.loc = loc; } @@ -28,4 +28,8 @@ public class StitchedSprite { return sprite; } + + void reset() { + sprite = null; + } }