Reset position properly when reverting movement

This commit is contained in:
Dylan K. Taylor 2017-10-12 20:33:26 +01:00
parent c4fe9ad32d
commit 7b5df10b6a

View File

@ -1578,6 +1578,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
$this->lastYaw = $from->yaw;
$this->lastPitch = $from->pitch;
$this->setPosition($from);
$this->sendPosition($from, $from->yaw, $from->pitch, MovePlayerPacket::MODE_RESET);
}else{
if($distanceSquared != 0 and $this->nextChunkOrderRun > 20){