From ac6e2f9bf7674900bfa403fcc7a8d6839e644f3e Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Thu, 9 Apr 2015 19:55:19 +0200 Subject: [PATCH] Fixed packet issues --- src/pocketmine/network/protocol/AddPaintingPacket.php | 2 +- src/pocketmine/network/protocol/MoveEntityPacket.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/network/protocol/AddPaintingPacket.php b/src/pocketmine/network/protocol/AddPaintingPacket.php index 81f25986c..f104442ef 100644 --- a/src/pocketmine/network/protocol/AddPaintingPacket.php +++ b/src/pocketmine/network/protocol/AddPaintingPacket.php @@ -45,7 +45,7 @@ class AddPaintingPacket extends DataPacket{ public function encode(){ $this->reset(); - $this->putLevel($this->eid); + $this->putLong($this->eid); $this->putInt($this->x); $this->putInt($this->y); $this->putInt($this->z); diff --git a/src/pocketmine/network/protocol/MoveEntityPacket.php b/src/pocketmine/network/protocol/MoveEntityPacket.php index 90cff6cef..12e865c5b 100644 --- a/src/pocketmine/network/protocol/MoveEntityPacket.php +++ b/src/pocketmine/network/protocol/MoveEntityPacket.php @@ -55,7 +55,7 @@ class MoveEntityPacket extends DataPacket{ $this->putFloat($d[2]); //y $this->putFloat($d[3]); //z $this->putFloat($d[4]); //yaw - $this->putFloat($d[5]); //headYaw + $this->putFloat($d[5]); //headYaw $this->putFloat($d[6]); //pitch } }