Player: don't jump to bad position when reverting movement

This commit is contained in:
Dylan K. Taylor 2018-03-24 10:57:59 +00:00
parent 7354a55af8
commit 22dd8faf1d

View File

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