mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 10:01:53 +00:00
Player: remove superfluous check from processMovement()
if we reached this branch, revert is always false because it is not modified between this branch and the parent one. detected by phpstan level 4
This commit is contained in:
parent
7b1ae2a822
commit
18863b1098
@ -1616,7 +1616,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
|
|
||||||
$diff = $this->distanceSquared($newPos) / $tickDiff ** 2;
|
$diff = $this->distanceSquared($newPos) / $tickDiff ** 2;
|
||||||
|
|
||||||
if($this->isSurvival() and !$revert and $diff > 0.0625){
|
if($this->isSurvival() 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));
|
||||||
$ev->setCancelled($this->allowMovementCheats);
|
$ev->setCancelled($this->allowMovementCheats);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user