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

Cancelling InventoryItemMoveEvent between Hopper & Crafter destroys items

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • 4236-Spigot-cb8cf80-f993563 (MC: 1.21) (Implementing API version 1.21-R0.1-SNAPSHOT)
    • Yes

      In my plugin I disallow items to be moved between blocks using hoppers under some circumstances. For this I use InventoryMoveItemEvent, and cancel it if it needs to be. However, when an item is moved from a Hopper to a Crafter in 1.21, and the event is cancelled, the item is still removed from the Hopper but doesn't arrive in the Crafter.

      I tried using two versions of Spigot I built locally with BuildTools, which had the same behaviour. However, using the latest build of Paper 1.21 does not trigger this behaviour, leading me to believe that this is some Spigot issue. My code has worked for years on all blocks, and this only happens on Crafters.

            Unassigned Unassigned
            sbnda Sean
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: