Remove GarbageServerboundPacket

it's not the protocol implementation's job to decide what's garbage. It should only indicate that a packet MAY be sent by the client. It should then be up to the handler to decide what to do with it.
This commit is contained in:
Dylan K. Taylor
2021-04-19 01:07:21 +01:00
parent 6845cbb2b3
commit 66fdf526d4
4 changed files with 6 additions and 41 deletions

View File

@ -76,6 +76,7 @@ use pocketmine\network\mcpe\protocol\PlayerInputPacket;
use pocketmine\network\mcpe\protocol\PlayerSkinPacket;
use pocketmine\network\mcpe\protocol\RequestChunkRadiusPacket;
use pocketmine\network\mcpe\protocol\ServerSettingsRequestPacket;
use pocketmine\network\mcpe\protocol\SetActorMotionPacket;
use pocketmine\network\mcpe\protocol\SetPlayerGameTypePacket;
use pocketmine\network\mcpe\protocol\ShowCreditsPacket;
use pocketmine\network\mcpe\protocol\SpawnExperienceOrbPacket;
@ -581,6 +582,10 @@ class InGamePacketHandler extends PacketHandler{
return true;
}
public function handleSetActorMotion(SetActorMotionPacket $packet) : bool{
return true; //Not used: This packet is (erroneously) sent to the server when the client is riding a vehicle.
}
public function handleAnimate(AnimatePacket $packet) : bool{
return true; //Not used
}