diff options
author | md_5 <git@md-5.net> | 2016-12-05 09:07:25 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-12-05 09:07:25 +1100 |
commit | a710176e461fa6192521afdee74b3f9bc315065d (patch) | |
tree | bc618975d2b8d35ff9a5cf4ada75320a4ae3d13f /nms-patches | |
parent | b64d8524968ef0984bb78dd026192e83b56149d8 (diff) | |
download | craftbukkit-a710176e461fa6192521afdee74b3f9bc315065d.tar craftbukkit-a710176e461fa6192521afdee74b3f9bc315065d.tar.gz craftbukkit-a710176e461fa6192521afdee74b3f9bc315065d.tar.lz craftbukkit-a710176e461fa6192521afdee74b3f9bc315065d.tar.xz craftbukkit-a710176e461fa6192521afdee74b3f9bc315065d.zip |
SPIGOT-2889: Error cancelling creative InventoryClickEvent
Diffstat (limited to 'nms-patches')
-rw-r--r-- | nms-patches/PlayerConnection.patch | 2 |
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; + } |