mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 01:25:03 +01:00
SPIGOT-2889: Error cancelling creative InventoryClickEvent
By: md_5 <git@md-5.net>
This commit is contained in:
parent
5443bf1110
commit
24fdb26050
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
+ }
|
||||
|
|
Loading…
Add table
Reference in a new issue