Skip to content

Fix some beacon event issues#9674

Closed
Warriorrrr wants to merge 1 commit into
PaperMC:masterfrom
Warriorrrr:fix/beacon-events
Closed

Fix some beacon event issues#9674
Warriorrrr wants to merge 1 commit into
PaperMC:masterfrom
Warriorrrr:fix/beacon-events

Conversation

@Warriorrrr
Copy link
Copy Markdown
Member

Closes #8947

Moves the deactivate event call into the onRemove method for the beacon block itself to prevent it from running when the block entity is unloaded. Also fixes an issue where the events were not being called when the beacon beam gets blocked.

The field I added feels a bit wrong but it works, it's to prevent the activation event being called immediately after loading, can't see any better way to differentiate between a newly placed beacon and a newly loaded one.

@Warriorrrr Warriorrrr requested a review from a team as a code owner August 31, 2023 09:03
@Warriorrrr Warriorrrr mentioned this pull request Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

BeaconDeactivatedEvent called during chunk unloads

2 participants