Fix support for Minecraft 20w06a to 1.16.2 (protocols 701 to 751)
This commit is contained in:
1 parent
b79f8b30eb
commit
4c35517157
20 files changed
+654
-256
No files matched your search
@@ -8,8 +8,8 @@ from minecraft.networking.types import (
|
||||
class CombatEventPacket(Packet):
|
||||
@staticmethod
|
||||
def get_id(context):
|
||||
return 0x31 if context.protocol_version >= 751 else \
|
||||
0x32 if context.protocol_version >= 722 else \
|
||||
return 0x31 if context.protocol_version >= 741 else \
|
||||
0x32 if context.protocol_version >= 721 else \
|
||||
0x33 if context.protocol_version >= 550 else \
|
||||
0x32 if context.protocol_version >= 471 else \
|
||||
0x30 if context.protocol_version >= 451 else \
|
||||
|
||||
Reference in new issue
Block a user