InventoryCloseEvent does not fire after closing player inventory

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None
    • This server is running CraftBukkit version git-Spigot-17d78db-f8d4da0 (MC: 1.16.3) (Implementing API version 1.16.3-R0.1-SNAPSHOT)
    • Yes

      The InventoryCloseEvent has been fired after any inventory was closed by the player for all versions prior to 1.16. This is no longer true for the player inventory. The InventoryCloseEvent is only fired for containers and crafting inventories. As this breaks quite a few plugins and requires listening for the window-close packet to circumvent, the bug is quite major for me. I have found no indication that this is a deliberate change with my searches so far.

      To reproduce:

      1. Create an EventListener for InventoryCloseEvent
      2. In-game try closing other inventories, such as crafting tables. You will see the close event firing.
      3. Try opening and closing your player inventory. No InventoryCloseEvent will be fired.

            Assignee:
            Unassigned
            Reporter:
            Photon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: