Player: use setPosition() when jumping to off position

This commit is contained in:
Dylan K. Taylor 2018-03-24 10:58:31 +00:00
parent 22dd8faf1d
commit 25089f5e70

View File

@ -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);
}
}