diff --git a/src/pocketmine/network/mcpe/protocol/MoveEntityPacket.php b/src/pocketmine/network/mcpe/protocol/MoveEntityPacket.php index a603a7e73..e7c818d99 100644 --- a/src/pocketmine/network/mcpe/protocol/MoveEntityPacket.php +++ b/src/pocketmine/network/mcpe/protocol/MoveEntityPacket.php @@ -36,8 +36,8 @@ class MoveEntityPacket extends DataPacket{ public $yaw; public $headYaw; public $pitch; - public $byte1; - public $byte2; + public $onGround; + public $teleported; public function decode(){ $this->eid = $this->getEntityRuntimeId(); @@ -45,8 +45,8 @@ class MoveEntityPacket extends DataPacket{ $this->pitch = $this->getByte() * (360.0 / 256); $this->headYaw = $this->getByte() * (360.0 / 256); $this->yaw = $this->getByte() * (360.0 / 256); - $this->byte1 = $this->getByte(); - $this->byte2 = $this->getByte(); + $this->onGround = $this->getByte(); + $this->teleported = $this->getByte(); } public function encode(){ @@ -56,8 +56,8 @@ class MoveEntityPacket extends DataPacket{ $this->putByte($this->pitch / (360.0 / 256)); $this->putByte($this->headYaw / (360.0 / 256)); $this->putByte($this->yaw / (360.0 / 256)); - $this->putByte($this->byte1); - $this->putByte($this->byte2); + $this->putByte($this->onGround); + $this->putByte($this->teleported); } public function handle(NetworkSession $session) : bool{ diff --git a/src/pocketmine/network/mcpe/protocol/MovePlayerPacket.php b/src/pocketmine/network/mcpe/protocol/MovePlayerPacket.php index 2a337669f..0a988042f 100644 --- a/src/pocketmine/network/mcpe/protocol/MovePlayerPacket.php +++ b/src/pocketmine/network/mcpe/protocol/MovePlayerPacket.php @@ -42,7 +42,7 @@ class MovePlayerPacket extends DataPacket{ public $pitch; public $mode = self::MODE_NORMAL; public $onGround; - public $eid2; //??? + public $ridingEid; public function decode(){ $this->eid = $this->getEntityRuntimeId(); @@ -52,7 +52,7 @@ class MovePlayerPacket extends DataPacket{ $this->bodyYaw = $this->getLFloat(); $this->mode = $this->getByte(); $this->onGround = $this->getBool(); - $this->eid2 = $this->getEntityRuntimeId(); + $this->ridingEid = $this->getEntityRuntimeId(); } public function encode(){ @@ -64,7 +64,7 @@ class MovePlayerPacket extends DataPacket{ $this->putLFloat($this->bodyYaw); //TODO $this->putByte($this->mode); $this->putBool($this->onGround); - $this->putEntityRuntimeId($this->eid2); + $this->putEntityRuntimeId($this->ridingEid); } public function handle(NetworkSession $session) : bool{