From a710176e461fa6192521afdee74b3f9bc315065d Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 5 Dec 2016 09:07:25 +1100 Subject: [PATCH] SPIGOT-2889: Error cancelling creative InventoryClickEvent --- nms-patches/PlayerConnection.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nms-patches/PlayerConnection.patch b/nms-patches/PlayerConnection.patch index e3ef52f5d5..af5777b56f 100644 --- a/nms-patches/PlayerConnection.patch +++ b/nms-patches/PlayerConnection.patch @@ -1453,7 +1453,7 @@ + // Reset the slot + if (packetplayinsetcreativeslot.a() >= 0) { + this.player.playerConnection.sendPacket(new PacketPlayOutSetSlot(this.player.defaultContainer.windowId, packetplayinsetcreativeslot.a(), this.player.defaultContainer.getSlot(packetplayinsetcreativeslot.a()).getItem())); -+ this.player.playerConnection.sendPacket(new PacketPlayOutSetSlot(-1, -1, null)); ++ this.player.playerConnection.sendPacket(new PacketPlayOutSetSlot(-1, -1, ItemStack.a)); + } + return; + }