mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Player: don't jump to bad position when reverting movement
This commit is contained in:
@ -1574,7 +1574,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
||||
}
|
||||
}
|
||||
|
||||
if($diff > 0){
|
||||
if($diff > 0 and !$revert){
|
||||
$this->x = $newPos->x;
|
||||
$this->y = $newPos->y;
|
||||
$this->z = $newPos->z;
|
||||
|
Reference in New Issue
Block a user