From f8781c19c83891ecdbab447ad126d2aa610f2d77 Mon Sep 17 00:00:00 2001 From: TheSnoozer Date: Tue, 8 Aug 2017 10:31:30 +0200 Subject: [PATCH] The packet IDs of Entity Velocity (0x3E), Update Health (0x41), Combat Event (0x2D), and Client Status (0x03) changed in [protocol 336 (snapshot 17w31a)](http://wiki.vg/index.php?title=Pre-release_protocol&oldid=13265) --- minecraft/networking/packets.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/minecraft/networking/packets.py b/minecraft/networking/packets.py index e9fb6ad..cfc482f 100644 --- a/minecraft/networking/packets.py +++ b/minecraft/networking/packets.py @@ -749,7 +749,8 @@ class ClientSpawnPlayer(Packet): class ClientEntityVelocity(Packet): @staticmethod def get_id(context): - return 0x3D if context.protocol_version >= 332 else \ + return 0x3E if context.protocol_version >= 336 else \ + 0x3D if context.protocol_version >= 332 else \ 0x3B if context.protocol_version >= 86 else \ 0x3C if context.protocol_version >= 77 else \ 0x3B if context.protocol_version >= 67 else \ @@ -767,7 +768,8 @@ class ClientEntityVelocity(Packet): class ClientUpdateHealth(Packet): @staticmethod def get_id(context): - return 0x40 if context.protocol_version >= 318 else \ + return 0x41 if context.protocol_version >= 336 else \ + 0x40 if context.protocol_version >= 318 else \ 0x3E if context.protocol_version >= 86 else \ 0x3F if context.protocol_version >= 77 else \ 0x3E if context.protocol_version >= 67 else \ @@ -784,7 +786,8 @@ class ClientUpdateHealth(Packet): class ClientCombatEvent(Packet): @staticmethod def get_id(context): - return 0x2C if context.protocol_version >= 332 else \ + return 0x2D if context.protocol_version >= 336 else \ + 0x2C if context.protocol_version >= 332 else \ 0x2D if context.protocol_version >= 318 else \ 0x2C if context.protocol_version >= 86 else \ 0x2D if context.protocol_version >= 80 else \ @@ -1131,7 +1134,8 @@ class AnimationPacketServerbound(Packet): class ServerClientStatus(Packet): @staticmethod def get_id(context): - return 0x04 if context.protocol_version >= 318 else \ + return 0x03 if context.protocol_version >= 336 else \ + 0x04 if context.protocol_version >= 318 else \ 0x03 if context.protocol_version >= 80 else \ 0x02 if context.protocol_version >= 67 else \ 0x17 if context.protocol_version >= 49 else \