Only burn items in loaded chunks.

https://github.com/BentoBoxWorld/AcidIsland/issues/84
This commit is contained in:
tastybento 2020-04-09 11:03:22 -07:00
parent f344208460
commit ded273c7e5

View File

@ -91,6 +91,7 @@ public class AcidTask {
Set<Entity> newItemsInWater = new HashSet<>();
getEntityStream()
.filter(e -> e.getType().equals(EntityType.DROPPED_ITEM))
.filter(e -> e.getLocation().getChunk().isLoaded())
.filter(e -> e.getLocation().getBlock().getType().equals(Material.WATER)
|| (e.getLocation().getY() > 0 && e.getLocation().getBlock().getRelative(BlockFace.DOWN).getType().equals(Material.WATER)))
.forEach(e -> {