Skip to content

Fix duplicate dispense events for some items#13922

Open
Lulu13022002 wants to merge 1 commit into
PaperMC:mainfrom
Lulu13022002:fix/duplicate-dispense-events
Open

Fix duplicate dispense events for some items#13922
Lulu13022002 wants to merge 1 commit into
PaperMC:mainfrom
Lulu13022002:fix/duplicate-dispense-events

Conversation

@Lulu13022002
Copy link
Copy Markdown
Contributor

Replaces #8525

Both wither skulls and carved pumpkins fired a BlockDispenseEvent twice if they didn't spawn a mob.
This is possibly a behavior change, but as usual, it's actually a bug fix so the behavior before was wrong.

In general if the dispense action fails completely no event occur (i.e the item is not dispensed nor consumed), the event is only triggered for the action that will succeed (that is partially true currently but should be better now).
Also moved fluid pickup game event after the event for taking liquid in bucket since the event is cancellable.

Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
@Lulu13022002 Lulu13022002 requested a review from a team as a code owner June 1, 2026 17:16
@github-project-automation github-project-automation Bot moved this to Awaiting review in Paper PR Queue Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Awaiting review

Development

Successfully merging this pull request may close these issues.

1 participant