getChunk loads chunks, use right method (#49)
This commit is contained in:
parent
7ba70c9e1d
commit
3f92772e39
|
@ -117,7 +117,7 @@ public class SnowTracker implements Listener {
|
|||
|
||||
private void shakeGlobes(World world) {
|
||||
addon.getManager().getMap().getGreenhouses().stream().filter(g -> g.getBiomeRecipe().getIceCoverage() > 0)
|
||||
.filter(g -> g.getLocation().getChunk().isLoaded())
|
||||
.filter(g -> (g.getLocation().getWorld().isChunkLoaded(((int) g.getBoundingBox().getMaxX()) >> 4, ((int) g.getBoundingBox().getMaxZ()) >> 4) && g.getLocation().getWorld().isChunkLoaded(((int) g.getBoundingBox().getMinX()) >> 4, ((int) g.getBoundingBox().getMinZ()) >> 4)))
|
||||
.filter(g -> g.getLocation().getWorld().equals(world))
|
||||
.filter(g -> !g.isBroken())
|
||||
.filter(g -> g.getRoofHopperLocation() != null)
|
||||
|
@ -142,4 +142,4 @@ public class SnowTracker implements Listener {
|
|||
snowTasks.remove(world);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue