Skip to content

Comments

Fix OnClientRequestFull throwing an error when trying to log data about a deleted entity#6420

Open
DrSmugleaf wants to merge 1 commit intospace-wizards:masterfrom
DrSmugleaf:fix/OnClientRequestFull-log
Open

Fix OnClientRequestFull throwing an error when trying to log data about a deleted entity#6420
DrSmugleaf wants to merge 1 commit intospace-wizards:masterfrom
DrSmugleaf:fix/OnClientRequestFull-log

Conversation

@DrSmugleaf
Copy link
Member

Slightly suboptimal for the logging to be throwing an error for an error we are handling
The client also seemed to just get stuck forever waiting for better days

@DrSmugleaf DrSmugleaf requested a review from PJB3005 as a code owner February 15, 2026 00:01
sb.Append($"Client {session} requested full state on tick {tick}. Last Acked: {lastAcked}. Curtick: {_gameTiming.CurTick}.");

if (missingEntity != null)
if (missingEntity != null && TryGetEntityData(missingEntity.Value, out var uid, out _))
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this not still log and just remark the entity doesn't exist? It likely existed previously.

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