geforkt von Mirrors/FastAsyncWorldEdit
Fix physics freeze
Dieser Commit ist enthalten in:
Ursprung
cfbf7dbec0
Commit
dce39e5c69
@ -189,6 +189,10 @@ public abstract class ChunkListener implements Listener {
|
|||||||
|
|
||||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||||
public void onPhysics(BlockPhysicsEvent event) {
|
public void onPhysics(BlockPhysicsEvent event) {
|
||||||
|
if (physicsFreeze) {
|
||||||
|
event.setCancelled(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (physCancel) {
|
if (physCancel) {
|
||||||
Block block = event.getBlock();
|
Block block = event.getBlock();
|
||||||
long pair = MathMan.pairInt(block.getX() >> 4, block.getZ() >> 4);
|
long pair = MathMan.pairInt(block.getX() >> 4, block.getZ() >> 4);
|
||||||
@ -212,10 +216,6 @@ public abstract class ChunkListener implements Listener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (physicsFreeze) {
|
|
||||||
event.setCancelled(true);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
switch (event.getChangedType()) {
|
switch (event.getChangedType()) {
|
||||||
case AIR:
|
case AIR:
|
||||||
case CAVE_AIR:
|
case CAVE_AIR:
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren