SPIGOT-7416: SmithItemEvent not firing in Smithing Table
This commit is contained in:
parent
9f64f0d22a
commit
9a919a1438
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user