mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Reset position properly when reverting movement
This commit is contained in:
parent
c4fe9ad32d
commit
7b5df10b6a
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user