Update __init__.py
This commit is contained in:
1 parent
1a114c1b95
commit
e840fab267
1 file changed
+1
@@ -79,6 +79,7 @@ class JoinGamePacket(Packet):
|
|||||||
|
|
||||||
|
|
||||||
class ServerDifficultyPacket(Packet):
|
class ServerDifficultyPacket(Packet):
|
||||||
|
@staticmethod
|
||||||
def get_id(context):
|
def get_id(context):
|
||||||
return 0x0D if context.protocol_version >= 332 else \
|
return 0x0D if context.protocol_version >= 332 else \
|
||||||
0x0E if context.protocol_version >= 318 else \
|
0x0E if context.protocol_version >= 318 else \
|
||||||
|
|||||||
Reference in new issue
Block a user