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)
This commit is contained in:
1 parent
6137436d03
commit
f8781c19c8
1 file changed
+8
-4
@@ -749,7 +749,8 @@ class ClientSpawnPlayer(Packet):
|
|||||||
class ClientEntityVelocity(Packet):
|
class ClientEntityVelocity(Packet):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_id(context):
|
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 \
|
0x3B if context.protocol_version >= 86 else \
|
||||||
0x3C if context.protocol_version >= 77 else \
|
0x3C if context.protocol_version >= 77 else \
|
||||||
0x3B if context.protocol_version >= 67 else \
|
0x3B if context.protocol_version >= 67 else \
|
||||||
@@ -767,7 +768,8 @@ class ClientEntityVelocity(Packet):
|
|||||||
class ClientUpdateHealth(Packet):
|
class ClientUpdateHealth(Packet):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_id(context):
|
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 \
|
0x3E if context.protocol_version >= 86 else \
|
||||||
0x3F if context.protocol_version >= 77 else \
|
0x3F if context.protocol_version >= 77 else \
|
||||||
0x3E if context.protocol_version >= 67 else \
|
0x3E if context.protocol_version >= 67 else \
|
||||||
@@ -784,7 +786,8 @@ class ClientUpdateHealth(Packet):
|
|||||||
class ClientCombatEvent(Packet):
|
class ClientCombatEvent(Packet):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_id(context):
|
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 \
|
0x2D if context.protocol_version >= 318 else \
|
||||||
0x2C if context.protocol_version >= 86 else \
|
0x2C if context.protocol_version >= 86 else \
|
||||||
0x2D if context.protocol_version >= 80 else \
|
0x2D if context.protocol_version >= 80 else \
|
||||||
@@ -1131,7 +1134,8 @@ class AnimationPacketServerbound(Packet):
|
|||||||
class ServerClientStatus(Packet):
|
class ServerClientStatus(Packet):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_id(context):
|
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 \
|
0x03 if context.protocol_version >= 80 else \
|
||||||
0x02 if context.protocol_version >= 67 else \
|
0x02 if context.protocol_version >= 67 else \
|
||||||
0x17 if context.protocol_version >= 49 else \
|
0x17 if context.protocol_version >= 49 else \
|
||||||
|
|||||||
Reference in new issue
Block a user