From 25089f5e70765651efa389084436fb9ed957c6ca Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 24 Mar 2018 10:58:31 +0000 Subject: [PATCH] Player: use setPosition() when jumping to off position --- src/pocketmine/Player.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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); } }