From 6093bcc44508395ea8d9a06859388e0a1de6e8a7 Mon Sep 17 00:00:00 2001 From: H31IX Date: Fri, 22 Jun 2012 01:15:56 -0400 Subject: [PATCH] Fix client crash on InventoryClick cancel. Fixes BUKKIT-1841 --- src/main/java/net/minecraft/server/NetServerHandler.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java index 830212c6e0..7377d4dbce 100644 --- a/src/main/java/net/minecraft/server/NetServerHandler.java +++ b/src/main/java/net/minecraft/server/NetServerHandler.java @@ -1175,8 +1175,6 @@ public class NetServerHandler extends NetHandler implements ICommandListener { if (packet107setcreativeslot.slot > -1) { this.player.netServerHandler.sendPacket(new Packet103SetSlot(this.player.defaultContainer.windowId, packet107setcreativeslot.slot, CraftItemStack.createNMSItemStack(item))); } - this.player.netServerHandler.sendPacket(new Packet103SetSlot(this.player.defaultContainer.windowId, -1, null)); - return; case DEFAULT: // We do the stuff below