summaryrefslogtreecommitdiffstats
path: root/nms-patches
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-07-18 09:59:10 +1000
committermd_5 <git@md-5.net>2018-07-18 09:59:10 +1000
commit3e814e7b7d714b7604c01c6580f35c77a6517d0d (patch)
tree6b945022201488276616416ef78ea56a148cfe67 /nms-patches
parent3791cf947ec9dcd7918049a8c23b09e74fca054e (diff)
downloadcraftbukkit-3e814e7b7d714b7604c01c6580f35c77a6517d0d.tar
craftbukkit-3e814e7b7d714b7604c01c6580f35c77a6517d0d.tar.gz
craftbukkit-3e814e7b7d714b7604c01c6580f35c77a6517d0d.tar.lz
craftbukkit-3e814e7b7d714b7604c01c6580f35c77a6517d0d.tar.xz
craftbukkit-3e814e7b7d714b7604c01c6580f35c77a6517d0d.zip
SPIGOT-4034: Fix missed diff affecting canceled InventoryClickEvent
Diffstat (limited to 'nms-patches')
-rw-r--r--nms-patches/PlayerConnection.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/nms-patches/PlayerConnection.patch b/nms-patches/PlayerConnection.patch
index f5611f32..cede18bf 100644
--- a/nms-patches/PlayerConnection.patch
+++ b/nms-patches/PlayerConnection.patch
@@ -1432,12 +1432,12 @@
+ case PLACE_ONE:
+ case SWAP_WITH_CURSOR:
+ this.player.playerConnection.sendPacket(new PacketPlayOutSetSlot(-1, -1, this.player.inventory.getCarried()));
-+ this.player.playerConnection.sendPacket(new PacketPlayOutSetSlot(this.player.activeContainer.windowId, packetplayinwindowclick.b(), this.player.activeContainer.getSlot(packetplayinwindowclick.b()).getItem()));
++ this.player.playerConnection.sendPacket(new PacketPlayOutSetSlot(this.player.activeContainer.windowId, packetplayinwindowclick.c(), this.player.activeContainer.getSlot(packetplayinwindowclick.c()).getItem()));
+ break;
+ // Modified clicked only
+ case DROP_ALL_SLOT:
+ case DROP_ONE_SLOT:
-+ this.player.playerConnection.sendPacket(new PacketPlayOutSetSlot(this.player.activeContainer.windowId, packetplayinwindowclick.b(), this.player.activeContainer.getSlot(packetplayinwindowclick.b()).getItem()));
++ this.player.playerConnection.sendPacket(new PacketPlayOutSetSlot(this.player.activeContainer.windowId, packetplayinwindowclick.c(), this.player.activeContainer.getSlot(packetplayinwindowclick.c()).getItem()));
+ break;
+ // Modified cursor only
+ case DROP_ALL_CURSOR: