Merge pull request #74 from TheSnoozer/master

merging branch issue70 into master + minor fix for ClientSettingsPacket
This commit is contained in:
joo 2018-01-06 19:46:16 +00:00 committed by GitHub
commit 8301f714d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class ClientSettingsPacket(Packet):
{'chat_mode': VarInt if context.protocol_version > 47 else Byte},
{'chat_colors': Boolean},
{'displayed_skin_parts': UnsignedByte},
{'main_hand': VarInt}])
{'main_hand': VarInt} if context.protocol_version > 49 else {}])
field_enum = classmethod(
lambda cls, field: {