Add support for v1.15

This commit is contained in:
Sillyfrog authored and Ammar Askar committed 2019-12-23 21:53:10 -05:00
1 parent 6f2f25656c
commit e1afabcba5
12 files changed
+50 -23

No files matched your search

@@ -8,7 +8,8 @@ from minecraft.networking.types import (
class BlockChangePacket(Packet):
@staticmethod
def get_id(context):
return 0x0B if context.protocol_version >= 332 else \
return 0x0C if context.protocol_version >= 573 else \
0x0B if context.protocol_version >= 332 else \
0x0C if context.protocol_version >= 318 else \
0x0B if context.protocol_version >= 67 else \
0x24 if context.protocol_version >= 62 else \
@@ -45,7 +46,8 @@ class BlockChangePacket(Packet):
class MultiBlockChangePacket(Packet):
@staticmethod
def get_id(context):
return 0x0F if context.protocol_version >= 343 else \
return 0x10 if context.protocol_version >= 573 else \
0x0F if context.protocol_version >= 343 else \
0x10 if context.protocol_version >= 332 else \
0x11 if context.protocol_version >= 318 else \
0x10 if context.protocol_version >= 67 else \