From 8cb02e7f7fe6cc60918ab34e3c9e492e01967c28 Mon Sep 17 00:00:00 2001 From: Tristan Gosselin-Hane Date: Mon, 4 May 2020 12:04:04 -0400 Subject: [PATCH] Added support for snapshot 20w18a --- minecraft/__init__.py | 1 + minecraft/networking/packets/clientbound/play/__init__.py | 1 + 2 files changed, 2 insertions(+) diff --git a/minecraft/__init__.py b/minecraft/__init__.py index 6b938c9..1a46ae2 100644 --- a/minecraft/__init__.py +++ b/minecraft/__init__.py @@ -238,6 +238,7 @@ SUPPORTED_MINECRAFT_VERSIONS = { '20w15a': 711, '20w16a': 712, '20w17a': 713, + '20w18a': 714, } # Those Minecraft versions supported by pyCraft which are "release" versions, diff --git a/minecraft/networking/packets/clientbound/play/__init__.py b/minecraft/networking/packets/clientbound/play/__init__.py index 8c602d0..394f930 100644 --- a/minecraft/networking/packets/clientbound/play/__init__.py +++ b/minecraft/networking/packets/clientbound/play/__init__.py @@ -279,6 +279,7 @@ class RespawnPacket(Packet): {'hashed_seed': Long} if context.protocol_version >= 552 else {}, {'game_mode': UnsignedByte}, {'level_type': String}, + {'copy_metadata': Boolean}, ]) # These aliases declare the Enum type corresponding to each field: