Fix observer command & button (#17151)

This commit is contained in:
Leon Friedrich
2023-06-06 13:01:38 +12:00
committed by GitHub
parent e02cfa6956
commit 923f8f617a
5 changed files with 282 additions and 222 deletions

View File

@@ -57,7 +57,7 @@ public sealed partial class ReplaySpectatorSystem
if (!player.IsClientSide() || !HasComp<ReplaySpectatorComponent>(player))
{
// Player is trying to move -> behave like the ghost-on-move component.
SpawnObserverGhost(new EntityCoordinates(player, default), true);
SpawnSpectatorGhost(new EntityCoordinates(player, default), true);
return;
}
@@ -80,7 +80,7 @@ public sealed partial class ReplaySpectatorSystem
if (!xform.ParentUid.IsValid())
{
// Were they sitting on a grid as it was getting deleted?
SetObserverPosition(default);
SetSpectatorPosition(default);
return;
}