summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2016-12-05 09:07:25 +1100
committermd_5 <git@md-5.net>2016-12-05 09:07:25 +1100
commita710176e461fa6192521afdee74b3f9bc315065d (patch)
treebc618975d2b8d35ff9a5cf4ada75320a4ae3d13f
parentb64d8524968ef0984bb78dd026192e83b56149d8 (diff)
downloadcraftbukkit-a710176e461fa6192521afdee74b3f9bc315065d.tar
craftbukkit-a710176e461fa6192521afdee74b3f9bc315065d.tar.gz
craftbukkit-a710176e461fa6192521afdee74b3f9bc315065d.tar.lz
craftbukkit-a710176e461fa6192521afdee74b3f9bc315065d.tar.xz
craftbukkit-a710176e461fa6192521afdee74b3f9bc315065d.zip
SPIGOT-2889: Error cancelling creative InventoryClickEvent
-rw-r--r--nms-patches/PlayerConnection.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/PlayerConnection.patch b/nms-patches/PlayerConnection.patch
index e3ef52f5..af5777b5 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;
+ }