Player: fixed facepalm

This commit is contained in:
Dylan K. Taylor 2018-03-24 11:05:03 +00:00
parent 25089f5e70
commit 071aa44d29

View File

@ -1559,7 +1559,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
$this->move($dx, $dy, $dz);
$diff = $this->subtract($newPos)->lengthSquared() / $tickDiff ** 2;
$diff = $this->distanceSquared($newPos) / $tickDiff ** 2;
if($this->isSurvival() and !$revert and $diff > 0.0625){
$ev = new PlayerIllegalMoveEvent($this, $newPos, new Vector3($this->lastX, $this->lastY, $this->lastZ));