From 67bfcaac5b6e1f66407d9357f0f75d0e969513db Mon Sep 17 00:00:00 2001 From: joo Date: Tue, 27 Sep 2016 12:25:44 +0100 Subject: [PATCH] Add support for snapshot 16w38a (protocol 306). Fix incorrect protocol number in ChatPacket. --- minecraft/networking/packets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minecraft/networking/packets.py b/minecraft/networking/packets.py index 4a71ddd..e9e4e60 100644 --- a/minecraft/networking/packets.py +++ b/minecraft/networking/packets.py @@ -706,7 +706,7 @@ class ChatPacket(Packet): @staticmethod def get_max_length(context): - return 256 if context.protocol_version >= 305 else \ + return 256 if context.protocol_version >= 306 else \ 100 @property