mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Player: fixed facepalm
This commit is contained in:
parent
25089f5e70
commit
071aa44d29
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user