13
0
geforkt von Mirrors/Paper

SPIGOT-2889: Error cancelling creative InventoryClickEvent

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2016-12-05 09:07:25 +11:00
Ursprung 5443bf1110
Commit 24fdb26050

Datei anzeigen

@ -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;
+ }