mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 18:29:46 +00:00
Make use of Mojang's pitch hack, close #821
This commit is contained in:
parent
dca7efa03c
commit
c2dfef700f
@ -3988,6 +3988,18 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
||||
$this->dataPacket($pk);
|
||||
}
|
||||
|
||||
//TODO: Remove this hack for client bug
|
||||
$pk = new MovePlayerPacket();
|
||||
$pk->entityRuntimeId = $this->getId();
|
||||
$pk->x = $pos->x;
|
||||
$pk->y = $pos->y + $this->baseOffset;
|
||||
$pk->z = $pos->z;
|
||||
$pk->bodyYaw = $yaw;
|
||||
$pk->pitch = $pitch;
|
||||
$pk->yaw = $yaw;
|
||||
$pk->mode = MovePlayerPacket::MODE_PITCH;
|
||||
$this->dataPacket($pk);
|
||||
|
||||
$this->newPosition = null;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user