mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-15 16:05:28 +00:00
Player: use setPosition() when jumping to off position
This commit is contained in:
parent
22dd8faf1d
commit
25089f5e70
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user