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

@@ -10,7 +10,8 @@ from minecraft.networking.types import (
class MapPacket(Packet):
@staticmethod
def get_id(context):
return 0x24 if context.protocol_version >= 334 else \
return 0x25 if context.protocol_version >= 345 else \
0x24 if context.protocol_version >= 334 else \
0x25 if context.protocol_version >= 318 else \
0x24 if context.protocol_version >= 107 else \
0x34