Fix incorrect packet IDs for PlayerPositionAndLookPacket for old protocol versions.

This commit is contained in:
joo 2017-08-20 07:35:14 +01:00
parent 46e058dd08
commit 9765e936c9

View File

@ -9,8 +9,9 @@ class PlayerPositionAndLookPacket(Packet):
@staticmethod
def get_id(context):
return 0x2F if context.protocol_version >= 336 else \
0x2E if context.protocol_version >= 318 else \
0x2F if context.protocol_version >= 107 else \
0x2E if context.protocol_version >= 332 else \
0x2F if context.protocol_version >= 318 else \
0x2E if context.protocol_version >= 70 else \
0x08
packet_name = "player position and look"