mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2024-11-16 07:15:24 +01:00
Fix incorrect packet IDs for PlayerPositionAndLookPacket for old protocol versions.
This commit is contained in:
parent
46e058dd08
commit
9765e936c9
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user