diff --git a/src/network/mcpe/handler/InGamePacketHandler.php b/src/network/mcpe/handler/InGamePacketHandler.php index de74046ee..cd91f4f7f 100644 --- a/src/network/mcpe/handler/InGamePacketHandler.php +++ b/src/network/mcpe/handler/InGamePacketHandler.php @@ -166,6 +166,12 @@ class InGamePacketHandler extends PacketHandler{ return false; } + public function handleMovePlayer(MovePlayerPacket $packet) : bool{ + //The client sends this every time it lands on the ground, even when using PlayerAuthInputPacket. + //Silence the debug spam that this causes. + return true; + } + private function resolveOnOffInputFlags(PlayerAuthInputPacket $packet, int $startFlag, int $stopFlag) : ?bool{ $enabled = $packet->hasFlag($startFlag); if($enabled !== $packet->hasFlag($stopFlag)){ @@ -175,12 +181,6 @@ class InGamePacketHandler extends PacketHandler{ return null; } - public function handleMovePlayer(MovePlayerPacket $packet) : bool{ - //The client sends this every time it lands on the ground, even when using PlayerAuthInputPacket. - //Silence the debug spam that this causes. - return true; - } - public function handlePlayerAuthInput(PlayerAuthInputPacket $packet) : bool{ $rawPos = $packet->getPosition(); foreach([$rawPos->x, $rawPos->y, $rawPos->z, $packet->getYaw(), $packet->getHeadYaw(), $packet->getPitch()] as $float){