From b6794f5597c9650016b3ca5e1011c8dae3079577 Mon Sep 17 00:00:00 2001 From: Mats Date: Wed, 20 Apr 2016 19:31:18 +0200 Subject: [PATCH] Cancel swap item, fix #364 (#365) * Cancel swap item, fix #364 * Remove canceling drop item --- .../protocols/protocol1_9to1_8/packets/WorldPackets.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/WorldPackets.java b/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/WorldPackets.java index e747b529d..42600ab66 100644 --- a/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/WorldPackets.java +++ b/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/WorldPackets.java @@ -217,7 +217,7 @@ public class WorldPackets { @Override public void handle(PacketWrapper wrapper) throws Exception { int status = wrapper.get(Type.UNSIGNED_BYTE, 0); - if (status == 4) + if (status == 6) wrapper.cancel(); } });