-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
None
-
git-Spigot-1a3504a-dfa7583
-
Yes
Unable to get the location of the workbench from PrepareItemCraftEvent.
PrepareItemCraftEvent.getInventory(), PrepareItemCraftEvent.getView.getTop() and PrepareItemCraftEvent.getView.getBottom() all return the player's inventory.
PrepareItemCraftEvent.getInventory().getType() and PrepareItemCraftEvent.getView.getTop().getType() return WORKBENCH and PrepareItemCraftEvent.getView.getBottom().getType() returns PLAYER so there is clearly a distinction between the two already.
Expected behaviour:
PrepareItemCraftEvent.getInventory() and PrepareItemCraftEvent.getView.getTop() should return the inventory of the crafting table (workbench).