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:
Dylan K. Taylor 2019-12-05 14:47:15 +00:00
parent 7b1ae2a822
commit 18863b1098

View File

@ -1616,7 +1616,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
$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->setCancelled($this->allowMovementCheats);