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

This commit is contained in:
Ruakij 2021-05-11 09:37:10 +02:00
parent 6c2e06afaf
commit 2bda948c8f

View File

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