From 9765e936c9c2558022d361d534769f6d87ccd902 Mon Sep 17 00:00:00 2001 From: joo Date: Sun, 20 Aug 2017 07:35:14 +0100 Subject: [PATCH] Fix incorrect packet IDs for PlayerPositionAndLookPacket for old protocol versions. --- .../clientbound/play/player_position_and_look_packet.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/minecraft/networking/packets/clientbound/play/player_position_and_look_packet.py b/minecraft/networking/packets/clientbound/play/player_position_and_look_packet.py index a8e6f31..ca9cd1b 100644 --- a/minecraft/networking/packets/clientbound/play/player_position_and_look_packet.py +++ b/minecraft/networking/packets/clientbound/play/player_position_and_look_packet.py @@ -9,8 +9,9 @@ class PlayerPositionAndLookPacket(Packet): @staticmethod def get_id(context): return 0x2F if context.protocol_version >= 336 else \ - 0x2E if context.protocol_version >= 318 else \ - 0x2F if context.protocol_version >= 107 else \ + 0x2E if context.protocol_version >= 332 else \ + 0x2F if context.protocol_version >= 318 else \ + 0x2E if context.protocol_version >= 70 else \ 0x08 packet_name = "player position and look"