Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
SPIGOT-2889: Error cancelling creative InventoryClickEvent
Dieser Commit ist enthalten in:
Ursprung
b64d852496
Commit
a710176e46
@ -1453,7 +1453,7 @@
|
|||||||
+ // Reset the slot
|
+ // Reset the slot
|
||||||
+ if (packetplayinsetcreativeslot.a() >= 0) {
|
+ 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(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;
|
+ return;
|
||||||
+ }
|
+ }
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren