diff --git a/src/main/java/com/gmail/nossr50/listeners/ChunkListener.java b/src/main/java/com/gmail/nossr50/listeners/ChunkListener.java index 000d3ca8c..28524adeb 100644 --- a/src/main/java/com/gmail/nossr50/listeners/ChunkListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/ChunkListener.java @@ -11,9 +11,10 @@ import java.util.Arrays; public class ChunkListener implements Listener { - @EventHandler(ignoreCancelled = true) + @EventHandler(ignoreCancelled = true, priority = org.bukkit.event.EventPriority.MONITOR) public void onChunkUnload(ChunkUnloadEvent event) { final Chunk unloadingChunk = event.getChunk(); + Arrays.stream(unloadingChunk.getEntities()) .filter(entity -> entity instanceof LivingEntity) .map(entity -> (LivingEntity) entity)