Fixed CustomMoveEvent firing all the time instead of only on Block-change

master
Ruakij 4 years ago
parent 6c2e06afaf
commit 2bda948c8f

@ -52,7 +52,9 @@ public class CustomPlayerMoveEventHandler {
if(distance > 0) if(distance > 0)
locationChangeListeners(e); locationChangeListeners(e);
} }
else else if(loc.getBlockX() != oldLoc.getBlockX() ||
loc.getBlockY() != oldLoc.getBlockY() ||
loc.getBlockZ() != oldLoc.getBlockZ())
locationChangeListeners(e); locationChangeListeners(e);
} }

Loading…
Cancel
Save