mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
Player: don't jump to bad position when reverting movement
This commit is contained in:
parent
7354a55af8
commit
22dd8faf1d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user