Detach ghosts from parents on spawn (#6816)

This commit is contained in:
mirrorcult
2022-02-19 23:16:55 -07:00
committed by GitHub
parent 8491b320c2
commit 34c96439f6

View File

@@ -46,7 +46,7 @@ namespace Content.Server.Administration.Commands
var coordinates = player.AttachedEntity != null
? _entities.GetComponent<TransformComponent>(player.AttachedEntity.Value).Coordinates
: EntitySystem.Get<GameTicker>().GetObserverSpawnPoint();
var ghost = _entities.SpawnEntity("AdminObserver", coordinates);
var ghost = _entities.SpawnEntity("AdminObserver", coordinates.ToMap(_entities));
if (canReturn)
{