Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Robust.Server/GameStates/PvsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,9 @@ private void OnClientRequestFull(ICommonSession session, GameTick tick, NetEntit
var sb = new StringBuilder();
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.

{
var (entity, meta) = GetEntityData(missingEntity.Value);
sb.Append($" Apparently they received an entity without metadata: {ToPrettyString(entity)}.");
sb.Append($" Apparently they received an entity without metadata: {ToPrettyString(uid)}.");
//sb.Append($" Entity last seen: {meta.PvsData[sessionData.Index].EntityLastAcked}");
}

Expand Down
Loading