diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 47acdd5494..b89dc8ec06 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -1575,11 +1575,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ } if($diff > 0 and !$revert){ - $this->x = $newPos->x; - $this->y = $newPos->y; - $this->z = $newPos->z; - $radius = $this->width / 2; - $this->boundingBox->setBounds($this->x - $radius, $this->y, $this->z - $radius, $this->x + $radius, $this->y + $this->height, $this->z + $radius); + $this->setPosition($newPos); } }