Fixed packet types

This commit is contained in:
Tristan Gosselin-Hane 2020-05-22 12:49:02 -04:00
parent 9c08c6c9f5
commit 0343df918c

View File

@ -95,8 +95,8 @@ class JoinGamePacket(Packet):
{'render_distance': VarInt} if context.protocol_version >= 468 else {}, {'render_distance': VarInt} if context.protocol_version >= 468 else {},
{'reduced_debug_info': Boolean}, {'reduced_debug_info': Boolean},
{'respawn_screen': Boolean} if context.protocol_version >= 571 else {}, {'respawn_screen': Boolean} if context.protocol_version >= 571 else {},
{'is_debug': String} if context.protocol_version >= 716 else {}, {'is_debug': Boolean} if context.protocol_version >= 716 else {},
{'is_flat': String} if context.protocol_version >= 716 else {}, {'is_flat': Boolean} if context.protocol_version >= 716 else {},
]) ])
# These aliases declare the Enum type corresponding to each field: # These aliases declare the Enum type corresponding to each field:
@ -281,8 +281,8 @@ class RespawnPacket(Packet):
{'hashed_seed': Long} if context.protocol_version >= 552 else {}, {'hashed_seed': Long} if context.protocol_version >= 552 else {},
{'game_mode': UnsignedByte}, {'game_mode': UnsignedByte},
{'level_type': String} if context.protocol_version < 716 else {}, {'level_type': String} if context.protocol_version < 716 else {},
{'is_debug': String} if context.protocol_version >= 716 else {}, {'is_debug': Boolean} if context.protocol_version >= 716 else {},
{'is_flat': String} if context.protocol_version >= 716 else {}, {'is_flat': Boolean} if context.protocol_version >= 716 else {},
{'copy_metadata': Boolean}, {'copy_metadata': Boolean},
]) ])