mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 00:59:51 +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->lastYaw = $from->yaw;
|
||||||
$this->lastPitch = $from->pitch;
|
$this->lastPitch = $from->pitch;
|
||||||
|
|
||||||
|
$this->setPosition($from);
|
||||||
$this->sendPosition($from, $from->yaw, $from->pitch, MovePlayerPacket::MODE_RESET);
|
$this->sendPosition($from, $from->yaw, $from->pitch, MovePlayerPacket::MODE_RESET);
|
||||||
}else{
|
}else{
|
||||||
if($distanceSquared != 0 and $this->nextChunkOrderRun > 20){
|
if($distanceSquared != 0 and $this->nextChunkOrderRun > 20){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user