Fix client crash on InventoryClick cancel. Fixes BUKKIT-1841

This commit is contained in:
H31IX authored and Travis Watkins committed 2012-06-28 19:34:51 -05:00
1 parent a21f038fc3
commit 6093bcc445
1 file changed
-2
@@ -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