mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 01:25:03 +01:00
SPIGOT-4034: Fix missed diff affecting canceled InventoryClickEvent
By: md_5 <git@md-5.net>
This commit is contained in:
parent
01e8982b04
commit
3cc15177f6
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue