Fix client-side replay error (#27332)

This commit is contained in:
Leon Friedrich
2024-04-26 19:30:03 +12:00
committed by GitHub
parent 735eeefa03
commit 0ae942101a
3 changed files with 10 additions and 3 deletions

View File

@@ -198,6 +198,13 @@ public sealed partial class ReplaySpectatorSystem
if (args.Transform.MapUid != null || args.OldMapId == MapId.Nullspace)
return;
if (_spectatorData != null)
{
// Currently scrubbing/setting the replay tick
// the observer will get respawned once the state was applied
return;
}
// The entity being spectated from was moved to null-space.
// This was probably because they were spectating some entity in a client-side replay that left PVS range.
// Simple respawn the ghost.