From 345cc74b3ceb98a43947a4a5165200c3c07fccda Mon Sep 17 00:00:00 2001 From: "Kristian S. Stangeland" Date: Tue, 4 Feb 2014 22:53:56 +0100 Subject: [PATCH] Fixed a bug preventing dual side packets from working in 1.6.4. An example of a dual side packet is Packet101CloseWindow, which is sent by the server when it forces a inventory window to close, or by the client to the server when the player voluntarily closes it. The bug prevented the client-side of a dual side packet from being recognized in 1.6.4. Thanks to Shevchikden for discovering the bug, and finding the correct build number where it was introduced. --- .../src/main/java/com/comphenix/protocol/PacketType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/PacketType.java b/ProtocolLib/src/main/java/com/comphenix/protocol/PacketType.java index 7b8ca8d0..693c0bb6 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/PacketType.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/PacketType.java @@ -643,7 +643,7 @@ public class PacketType implements Serializable, Comparable { * @throws IllegalArgumentException If the sender is NULL and the packet doesn't exist. */ public static PacketType fromLegacy(int id, Sender sender) { - PacketType type = getLookup().getFromLegacy(id); + PacketType type = getLookup().getFromLegacy(id, sender); if (type == null) { if (sender == null)