InventoryClickEvent cancel not working on Crafter Block
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 12.7k
- Forks
- 3.5k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 11
Description
Expected behavior
When clicking a slot inside a Crafter (Block), it triggeres an InventoryClickEvent.
When it is not an Item (empty slot) it toggles/blocks/disables the slot even when canceling the Event.
It should cancel/revert the blocking/toggling of the Crafter slot when InventoryClickEvent is being fired and cancelled.
Observed/Actual behavior
Although cancelling the event, the slot is being blocked/unblocked/disabled.
Cancelling the event works for item-clicks but not for disabling/blocking/toggling clicks
Steps/models to reproduce
Cancelling the InventoryClickEvent (always) and clicking inside a Crafter (without items)
Plugin and Datapack List
Only my Plugin
Paper version
This server is running Paper version 1.21.10-117-ver/1.21.10@df4b668 (2025-11-30T22:37:28Z) (Implementing API version 1.21.10-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.10-113-9fc21bc (MC: 1.21.10)
Other
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with a plugin that always cancels InventoryClickEvent, then trace the Crafter block's empty-slot click handling and the InventoryClickEvent entry point. Done means cancelling the event reliably prevents the Crafter slot from being blocked, toggled, or disabled, matching item-click behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100