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

Cleanup more fields on player & world #1390

Merged
merged 1 commit into from
Aug 22, 2024
Merged

Cleanup more fields on player & world #1390

merged 1 commit into from
Aug 22, 2024

Conversation

Pablete1234
Copy link
Member

Player's last killer & last who hit them is cleared on reset, which avoids online players in new matches who may be in obs retaining who hit them in a past match (and maybe went offline) keeping a reference to older worlds

lastCraftView was only being cleared for non-match worlds, made it cleanup on all worlds when we stop using them

Also cleans up spigot-only nms usage replacing it with setArrowsStuck

Signed-off-by: Pablo Herrera <pabloherrerapalacio@gmail.com>
@Pablete1234 Pablete1234 merged commit 2d26167 into dev Aug 22, 2024
2 checks passed
@Pablete1234 Pablete1234 deleted the fix-mem-leaks branch August 22, 2024 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants