mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Player: fixed facepalm
This commit is contained in:
@ -1559,7 +1559,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
|
|
||||||
$this->move($dx, $dy, $dz);
|
$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){
|
if($this->isSurvival() and !$revert and $diff > 0.0625){
|
||||||
$ev = new PlayerIllegalMoveEvent($this, $newPos, new Vector3($this->lastX, $this->lastY, $this->lastZ));
|
$ev = new PlayerIllegalMoveEvent($this, $newPos, new Vector3($this->lastX, $this->lastY, $this->lastZ));
|
||||||
|
Reference in New Issue
Block a user