From 63f57841de44f1dfe3f707116ab8825e98395291 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 7 Aug 2020 19:50:49 +0100 Subject: [PATCH] PlayerAuthInputPacket: fixed yaw/pitch being the wrong way round, closes #3757 --- .../network/mcpe/protocol/PlayerAuthInputPacket.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/network/mcpe/protocol/PlayerAuthInputPacket.php b/src/pocketmine/network/mcpe/protocol/PlayerAuthInputPacket.php index 13acf5c72..e8900dd7f 100644 --- a/src/pocketmine/network/mcpe/protocol/PlayerAuthInputPacket.php +++ b/src/pocketmine/network/mcpe/protocol/PlayerAuthInputPacket.php @@ -128,8 +128,8 @@ class PlayerAuthInputPacket extends DataPacket/* implements ServerboundPacket*/{ } protected function decodePayload() : void{ - $this->yaw = $this->getLFloat(); $this->pitch = $this->getLFloat(); + $this->yaw = $this->getLFloat(); $this->position = $this->getVector3(); $this->moveVecX = $this->getLFloat(); $this->moveVecZ = $this->getLFloat(); @@ -143,8 +143,8 @@ class PlayerAuthInputPacket extends DataPacket/* implements ServerboundPacket*/{ } protected function encodePayload() : void{ - $this->putLFloat($this->yaw); $this->putLFloat($this->pitch); + $this->putLFloat($this->yaw); $this->putVector3($this->position); $this->putLFloat($this->moveVecX); $this->putLFloat($this->moveVecZ);