mirror of
https://github.com/BentoBoxWorld/AcidIsland.git
synced 2024-11-25 20:25:37 +01:00
Only burn items in loaded chunks.
https://github.com/BentoBoxWorld/AcidIsland/issues/84
This commit is contained in:
parent
f344208460
commit
ded273c7e5
@ -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 -> {
|
||||
|
Loading…
Reference in New Issue
Block a user