support 1.12.2
This commit is contained in:
1 parent
9765e936c9
commit
61d9695226
3 files changed
+9
-4
No files matched your search
@@ -1,11 +1,13 @@
|
||||
from .packet import Packet
|
||||
|
||||
from minecraft.networking.types import (
|
||||
VarInt
|
||||
VarInt, Long
|
||||
)
|
||||
|
||||
|
||||
class KeepAlivePacket(Packet):
|
||||
packet_name = "keep alive"
|
||||
definition = [
|
||||
{'keep_alive_id': VarInt}]
|
||||
get_definition = staticmethod(lambda context: [
|
||||
{'keep_alive_id': Long} if context.protocol_version >= 339
|
||||
else {'keep_alive_id': VarInt}
|
||||
])
|
||||
Reference in new issue
Block a user