[SPIGOT-7794] Cancelling InventoryItemMoveEvent between Hopper & Crafter destroys items Created: 23/Jun/24  Updated: 25/Dec/24  Resolved: 24/Jun/24

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Sean Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None

Version: 4236-Spigot-cb8cf80-f993563 (MC: 1.21) (Implementing API version 1.21-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

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.


Generated at Sat Dec 13 11:46:27 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.