Add support for Minecraft 1.13.2-pre1, 1.13.2-pre2 and 1.13.2 (protocols 402 to 404).

This commit is contained in:
joo 2018-10-26 19:46:13 +01:00
parent 48e1003f42
commit 527f3d3146
3 changed files with 5 additions and 2 deletions

View File

@ -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:
`<minecraft/__init__.py>`_ contains a full list of supported Minecraft versions

View File

@ -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 = \

View File

@ -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):