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 untrack event not being called for all 'untracks' #10110

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

Machine-Maker
Copy link
Member

Fixes #10107

Moves the untrack event call back to the Entity#stopSeenByPlayer method. It was originally added there, then moved when the track event became cancellable. But the untrack event wasn't (and can't) be made cancellable so it should've been left.

@Machine-Maker Machine-Maker requested a review from a team as a code owner January 1, 2024 22:12
Copy link
Contributor

@yannicklamprecht yannicklamprecht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Machine-Maker Machine-Maker merged commit ae001ae into PaperMC:master Jan 4, 2024
2 checks passed
@Machine-Maker Machine-Maker deleted the fix/untrack-event branch January 4, 2024 04:57
lynxplay pushed a commit to lynxplay/paper that referenced this pull request Feb 23, 2024
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.

PlayerUntrackEntityEvent is no longer called if untracked player/entity teleports to another world
3 participants