Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-4953

Crafting table inventory returns player location, not block location

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor 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).

            Unassigned Unassigned
            Registry_Editor Reg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: