Skip to content

Don't cancel BlockDestroyEvent#252

Merged
pop4959 merged 1 commit intopop4959:masterfrom
rymiel:destroy-bad
Feb 5, 2026
Merged

Don't cancel BlockDestroyEvent#252
pop4959 merged 1 commit intopop4959:masterfrom
rymiel:destroy-bad

Conversation

@rymiel
Copy link
Collaborator

@rymiel rymiel commented Feb 4, 2026

This was added as a last resort to defend against ghost protections, but chose to cancel the event instead of just cleaning it up. While this protects against accidental deletion of protected blocks, this event has strange side effects at times and has caused more trouble than it is worth.

This patch instead cleans up destroyed protections, without preventing their destruction.

Fixes #251
Fixes #248

Future patches could add the additional handling from BlockBreakEvent.

This was added as a last resort to defend against ghost protections, but
chose to cancel the event instead of just cleaning it up. While this
protects against accidental deletion of protected blocks, this event has
strange side effects at times and has caused more trouble than it is
worth.

This patch instead cleans up destroyed protections, without preventing
their destruction.

Fixes pop4959#251
Fixes pop4959#248
@rymiel rymiel requested a review from pop4959 February 4, 2026 20:48
@pop4959 pop4959 merged commit 11a7db6 into pop4959:master Feb 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/setblock destroy behavior not as expected [Bug?] Impossible Block Placement Methods Using Signs

2 participants