From 527f3d31468dbaf8c1cbfffd0cbf46e987d319a0 Mon Sep 17 00:00:00 2001 From: joo Date: Fri, 26 Oct 2018 19:46:13 +0100 Subject: [PATCH] Add support for Minecraft 1.13.2-pre1, 1.13.2-pre2 and 1.13.2 (protocols 402 to 404). --- README.rst | 2 +- minecraft/__init__.py | 3 +++ tests/fake_server.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 70c8e2b..3b4e5e4 100644 --- a/README.rst +++ b/README.rst @@ -28,7 +28,7 @@ pyCraft is compatible with the following Minecraft releases: * 1.10, 1.10.1, 1.10.2 * 1.11, 1.11.1, 1.11.2 * 1.12, 1.12.1, 1.12.2 -* 1.13, 1.13.1 +* 1.13, 1.13.1, 1.13.2 In addition, some development snapshots and pre-release versions are supported: ``_ contains a full list of supported Minecraft versions diff --git a/minecraft/__init__.py b/minecraft/__init__.py index a9b1fd9..4a25506 100644 --- a/minecraft/__init__.py +++ b/minecraft/__init__.py @@ -129,6 +129,9 @@ SUPPORTED_MINECRAFT_VERSIONS = { '1.13.1-pre1': 399, '1.13.1-pre2': 400, '1.13.1': 401, + '1.13.2-pre1': 402, + '1.13.2-pre2': 403, + '1.13.2': 404, } SUPPORTED_PROTOCOL_VERSIONS = \ diff --git a/tests/fake_server.py b/tests/fake_server.py index d095c4f..c3ccbcf 100644 --- a/tests/fake_server.py +++ b/tests/fake_server.py @@ -275,7 +275,7 @@ class FakeClientHandler(object): return assert isinstance(packet, serverbound.status.PingPacket) self.handle_ping(packet) - except FakeServerDisconnect as e: + except FakeServerDisconnect: pass def _read_packet_buffer(self):