From 24fdb260502d0c18b43d0a92c2f9477ff1cd8cc5 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Mon, 5 Dec 2016 09:07:25 +1100 Subject: [PATCH] SPIGOT-2889: Error cancelling creative InventoryClickEvent By: md_5 --- paper-server/nms-patches/PlayerConnection.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/nms-patches/PlayerConnection.patch b/paper-server/nms-patches/PlayerConnection.patch index e3ef52f5d5..af5777b56f 100644 --- a/paper-server/nms-patches/PlayerConnection.patch +++ b/paper-server/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; + }