Skip to content

Fix client predicteddel running on detaching entities - #7015

Open
metalgearsloth wants to merge 2 commits into
space-wizards:masterfrom
metalgearsloth:2026-08-17-client-predicted-deletion
Open

metalgearsloth wants to merge 2 commits into
space-wizards:masterfrom
metalgearsloth:2026-08-17-client-predicted-deletion

Conversation

@metalgearsloth

Copy link
Copy Markdown
Contributor

The issue is that the client will restore the entity in a weird state so we just need to block those situations entirely. Once it's detached we should just ignore it entirely.

This should defensively guard against space-wizards/space-station-14#45410 from the engine side.

The issue is that the client will restore the entity in a weird state so we just need to block those situations entirely.

@DrSmugleaf DrSmugleaf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would this mess up deleting as it comes back into pvs range? Otherwise unless entity lookup is fixable I guess this works

@metalgearsloth

Copy link
Copy Markdown
Contributor Author

Would this mess up deleting as it comes back into pvs range? Otherwise unless entity lookup is fixable I guess this works

Should only affect predicteddel as deletions get run at the very end of applyentitystates separately.

@DrSmugleaf DrSmugleaf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should be fine, even if you mispredict a delete the entity is getting detached anyways

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