From 925f960ea2aeeea8eaeae94a8ef6602690b215c2 Mon Sep 17 00:00:00 2001 From: dImrich Date: Thu, 4 Feb 2021 00:33:17 +0100 Subject: Adds playerlist header and footer broadcasting (1.8-1.13) --- src/Protocol/Protocol_1_12.cpp | 61 +++++++++++++++++++++--------------------- 1 file changed, 31 insertions(+), 30 deletions(-) (limited to 'src/Protocol/Protocol_1_12.cpp') diff --git a/src/Protocol/Protocol_1_12.cpp b/src/Protocol/Protocol_1_12.cpp index 30a975d18..e4ce9a942 100644 --- a/src/Protocol/Protocol_1_12.cpp +++ b/src/Protocol/Protocol_1_12.cpp @@ -1167,36 +1167,37 @@ UInt32 cProtocol_1_12_1::GetPacketID(ePacketType a_Packet) { switch (a_Packet) { - case pktAttachEntity: return 0x43; - case pktCameraSetTo: return 0x39; - case pktCollectEntity: return 0x4b; - case pktDestroyEntity: return 0x32; - case pktDisplayObjective: return 0x3b; - case pktEntityEffect: return 0x4f; - case pktEntityEquipment: return 0x3f; - case pktEntityHeadLook: return 0x36; - case pktEntityMeta: return 0x3c; - case pktEntityProperties: return 0x4e; - case pktEntityVelocity: return 0x3e; - case pktExperience: return 0x40; - case pktHeldItemChange: return 0x3a; - case pktLeashEntity: return 0x3d; - case pktPlayerList: return 0x2e; - case pktPlayerAbilities: return 0x2c; - case pktPlayerMaxSpeed: return 0x4e; - case pktPlayerMoveLook: return 0x2f; - case pktRemoveEntityEffect: return 0x33; - case pktResourcePack: return 0x34; - case pktRespawn: return 0x35; - case pktScoreboardObjective: return 0x42; - case pktSpawnPosition: return 0x46; - case pktUnlockRecipe: return 0x31; - case pktUpdateHealth: return 0x41; - case pktUpdateScore: return 0x45; - case pktUseBed: return 0x30; - case pktTeleportEntity: return 0x4c; - case pktTimeUpdate: return 0x47; - case pktTitle: return 0x48; + case pktAttachEntity: return 0x43; + case pktCameraSetTo: return 0x39; + case pktCollectEntity: return 0x4b; + case pktDestroyEntity: return 0x32; + case pktDisplayObjective: return 0x3b; + case pktEntityEffect: return 0x4f; + case pktEntityEquipment: return 0x3f; + case pktEntityHeadLook: return 0x36; + case pktEntityMeta: return 0x3c; + case pktEntityProperties: return 0x4e; + case pktEntityVelocity: return 0x3e; + case pktExperience: return 0x40; + case pktHeldItemChange: return 0x3a; + case pktLeashEntity: return 0x3d; + case pktPlayerList: return 0x2e; + case pktPlayerListHeaderFooter: return 0x4a; + case pktPlayerAbilities: return 0x2c; + case pktPlayerMaxSpeed: return 0x4e; + case pktPlayerMoveLook: return 0x2f; + case pktRemoveEntityEffect: return 0x33; + case pktResourcePack: return 0x34; + case pktRespawn: return 0x35; + case pktScoreboardObjective: return 0x42; + case pktSpawnPosition: return 0x46; + case pktUnlockRecipe: return 0x31; + case pktUpdateHealth: return 0x41; + case pktUpdateScore: return 0x45; + case pktUseBed: return 0x30; + case pktTeleportEntity: return 0x4c; + case pktTimeUpdate: return 0x47; + case pktTitle: return 0x48; default: return Super::GetPacketID(a_Packet); } -- cgit v1.2.3