From 860628f64bad7b40d9db5078f532732babaae48d Mon Sep 17 00:00:00 2001 From: TheSnoozer Date: Sun, 19 Nov 2017 23:22:00 -0500 Subject: [PATCH] the main hand attribute for ClientSettingsPacket was added in 15w31a [Protocol Version is now 49] and causes the client to send more data than the server expects which result in a instant disconnect while connecting to a 1.8.8 server --- .../packets/serverbound/play/client_settings_packet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minecraft/networking/packets/serverbound/play/client_settings_packet.py b/minecraft/networking/packets/serverbound/play/client_settings_packet.py index 6e54e13..4d0637d 100644 --- a/minecraft/networking/packets/serverbound/play/client_settings_packet.py +++ b/minecraft/networking/packets/serverbound/play/client_settings_packet.py @@ -20,7 +20,7 @@ class ClientSettingsPacket(Packet): {'chat_mode': VarInt if context.protocol_version > 47 else Byte}, {'chat_colors': Boolean}, {'displayed_skin_parts': UnsignedByte}, - {'main_hand': VarInt}]) + {'main_hand': VarInt} if context.protocol_version > 49 else {}]) field_enum = classmethod( lambda cls, field: {