diff options
Diffstat (limited to 'src')
2 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/world/CrystalHollowChestHighlighter.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/world/CrystalHollowChestHighlighter.java index 61c96aad..7351509b 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/world/CrystalHollowChestHighlighter.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/world/CrystalHollowChestHighlighter.java @@ -90,6 +90,7 @@ public class CrystalHollowChestHighlighter extends GenericBlockHighlighter { }); blockToRemove.forEach(highlightedBlocks::remove); + blockToRemove.forEach(markedBlocks::remove); } @SubscribeEvent diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/world/GenericBlockHighlighter.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/world/GenericBlockHighlighter.java index 5cacff2b..85230d7b 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/world/GenericBlockHighlighter.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/world/GenericBlockHighlighter.java @@ -106,7 +106,7 @@ public abstract class GenericBlockHighlighter { } @SubscribeEvent - public void onWorldChange(WorldEvent.Load event) { + public void onWorldChange(WorldEvent.Unload event) { highlightedBlocks.clear(); } |