Add support for Minecraft snapshots 17w43a-18w02a (protocol 341-353).

Add support declaration for Minecraft version 1.8.9 (protocol 47).
This commit is contained in:
joo committed 2018-01-13 01:12:28 +00:00
1 parent 258c1f2566
commit f492adfeff
10 files changed
+171 -92

No files matched your search

@@ -7,7 +7,8 @@ from minecraft.networking.types import (
class ClientSettingsPacket(Packet):
@staticmethod
def get_id(context):
return 0x04 if context.protocol_version >= 336 else \
return 0x03 if context.protocol_version >= 343 else \
0x04 if context.protocol_version >= 336 else \
0x05 if context.protocol_version >= 318 else \
0x04 if context.protocol_version >= 94 else \
0x15