Fixed CustomMoveEvent firing all the time instead of only on Block-change
This commit is contained in:
parent
6c2e06afaf
commit
2bda948c8f
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user