SPIGOT-7416: SmithItemEvent not firing in Smithing Table

This commit is contained in:
md_5 2023-07-01 09:25:36 +10:00
parent 9f64f0d22a
commit 9a919a1438
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -1554,7 +1554,7 @@
+ } + }
+ } + }
+ +
+ if (packetplayinwindowclick.getSlotNum() == 2 && top instanceof SmithingInventory) { + if (packetplayinwindowclick.getSlotNum() == 3 && top instanceof SmithingInventory) {
+ org.bukkit.inventory.ItemStack result = ((SmithingInventory) top).getResult(); + org.bukkit.inventory.ItemStack result = ((SmithingInventory) top).getResult();
+ if (result != null) { + if (result != null) {
+ if (click == ClickType.NUMBER_KEY) { + if (click == ClickType.NUMBER_KEY) {