From dce39e5c690da3901a2591e135e01dc2cc14c3c7 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Wed, 3 Oct 2018 14:58:19 +1000 Subject: [PATCH] Fix physics freeze --- .../java/com/boydti/fawe/bukkit/v0/ChunkListener.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/v0/ChunkListener.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/v0/ChunkListener.java index 25d62e3f7..e373c9f25 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/v0/ChunkListener.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/v0/ChunkListener.java @@ -189,6 +189,10 @@ public abstract class ChunkListener implements Listener { @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) public void onPhysics(BlockPhysicsEvent event) { + if (physicsFreeze) { + event.setCancelled(true); + return; + } if (physCancel) { Block block = event.getBlock(); long pair = MathMan.pairInt(block.getX() >> 4, block.getZ() >> 4); @@ -212,10 +216,6 @@ public abstract class ChunkListener implements Listener { return; } } - if (physicsFreeze) { - event.setCancelled(true); - return; - } switch (event.getChangedType()) { case AIR: case CAVE_AIR: