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 race condition when destroy and spawn same entity on 1.7 #539

Merged
merged 1 commit into from
Aug 11, 2024

Conversation

ItsClairton
Copy link
Contributor

@ItsClairton ItsClairton commented Aug 11, 2024

This fixes a concurrency issue with plugins that reload an entity.

Example: Skin plugins, they reload the player entity for the other people around, Usually with hidePlayer and showPlayer right after, The problem is that Rewind is currently sending the destroy packet asynchronously, allowing the spawn packet is sent before the destroy packet, causing the entity to no longer appear.

Bug: https://streamable.com/6utqzr

@ItsClairton ItsClairton changed the title Fix race condition when destroy entities on 1.7 Fix race condition when destroy and spawn same entity on 1.7 Aug 11, 2024
Copy link
Member

@FlorianMichael FlorianMichael left a comment

Choose a reason for hiding this comment

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

Thank you!

@FlorianMichael FlorianMichael merged commit 8c4efbb into ViaVersion:master Aug 11, 2024
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.

2 participants