From 6735234bf4c82a1af2c90440d21a3a674f1468bb Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Thu, 19 Mar 2015 10:12:09 +0100 Subject: [PATCH] Protocol update --- src/pocketmine/network/protocol/RotateHeadPacket.php | 2 +- src/pocketmine/network/protocol/SetEntityMotionPacket.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pocketmine/network/protocol/RotateHeadPacket.php b/src/pocketmine/network/protocol/RotateHeadPacket.php index 129df23e6c..e432edf717 100644 --- a/src/pocketmine/network/protocol/RotateHeadPacket.php +++ b/src/pocketmine/network/protocol/RotateHeadPacket.php @@ -51,7 +51,7 @@ class RotateHeadPacket extends DataPacket{ $this->putInt(count($this->entities)); foreach($this->entities as $d){ $this->putLong($d[0]); //eid - $this->putByte((int) ($d[1] / 360)); + $this->putFloat($d[1]); } } diff --git a/src/pocketmine/network/protocol/SetEntityMotionPacket.php b/src/pocketmine/network/protocol/SetEntityMotionPacket.php index 1c6babc8cc..e96ae6d50e 100644 --- a/src/pocketmine/network/protocol/SetEntityMotionPacket.php +++ b/src/pocketmine/network/protocol/SetEntityMotionPacket.php @@ -51,9 +51,9 @@ class SetEntityMotionPacket extends DataPacket{ $this->putInt(count($this->entities)); foreach($this->entities as $d){ $this->putLong($d[0]); //eid - $this->putShort((int) ($d[1] * 8000)); //motX - $this->putShort((int) ($d[2] * 8000)); //motY - $this->putShort((int) ($d[3] * 8000)); //motZ + $this->putFloat($d[1]); //motX + $this->putFloat($d[2]); //motY + $this->putFloat($d[3]); //motZ } }