mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 10:19:39 +00:00
Fix head rotation issues, thank @jojoe77777
This commit is contained in:
parent
76a1165c0e
commit
4b21e35d6e
@ -56,8 +56,8 @@ class AddEntityPacket extends DataPacket{
|
||||
$this->putUnsignedVarInt($this->type);
|
||||
$this->putVector3f($this->x, $this->y, $this->z);
|
||||
$this->putVector3f($this->speedX, $this->speedY, $this->speedZ);
|
||||
$this->putLFloat($this->yaw * (256 / 360));
|
||||
$this->putLFloat($this->pitch * (256 / 360));
|
||||
$this->putLFloat($this->yaw * (256 / 360));
|
||||
$this->putUnsignedVarInt($this->modifiers); //attributes?
|
||||
$meta = Binary::writeMetadata($this->metadata);
|
||||
$this->put($meta);
|
||||
|
Loading…
x
Reference in New Issue
Block a user