mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Fix physics freeze
This commit is contained in:
parent
cfbf7dbec0
commit
dce39e5c69
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user