Added support for snapshot 20w18a

This commit is contained in:
Tristan Gosselin-Hane 2020-05-04 12:04:04 -04:00
parent 180c698ce1
commit 8cb02e7f7f
2 changed files with 2 additions and 0 deletions

View File

@ -238,6 +238,7 @@ SUPPORTED_MINECRAFT_VERSIONS = {
'20w15a': 711, '20w15a': 711,
'20w16a': 712, '20w16a': 712,
'20w17a': 713, '20w17a': 713,
'20w18a': 714,
} }
# Those Minecraft versions supported by pyCraft which are "release" versions, # Those Minecraft versions supported by pyCraft which are "release" versions,

View File

@ -279,6 +279,7 @@ 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}, {'level_type': String},
{'copy_metadata': Boolean},
]) ])
# These aliases declare the Enum type corresponding to each field: # These aliases declare the Enum type corresponding to each field: