Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Cancelling BlockPlaceEvent calling onRemove #10773

Merged
merged 2 commits into from
May 26, 2024

Conversation

notTamion
Copy link
Contributor

@notTamion notTamion commented May 23, 2024

fixes #10151
fixes #10292
The onRemove methods are often responsible for updating neighbouring blocks, which we don't want to update if BlockPlaceEvent is cancelled.

This doesn't only fix the example shown in the linked issue but also other issues regarding other redstone blocks like wires (there might be more just from looking at onRemove implementations on different redstone blocks, though i didn't test those).

@notTamion notTamion requested a review from a team as a code owner May 23, 2024 10:07
@lynxplay lynxplay force-pushed the fix-blockplaceevent-call-onremove branch from 7432eb7 to b384e1e Compare May 26, 2024 22:00
@lynxplay lynxplay merged commit 347bbe3 into PaperMC:master May 26, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

ALTERNATE_CURRENT incorrect event cancellation Update chain is triggered when BlockPlaceEvent is cancelled
4 participants