From 34c96439f63a78b503542d7a552172d994af8e7b Mon Sep 17 00:00:00 2001 From: mirrorcult Date: Sat, 19 Feb 2022 23:16:55 -0700 Subject: [PATCH] Detach ghosts from parents on spawn (#6816) --- Content.Server/Administration/Commands/AGhost.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Administration/Commands/AGhost.cs b/Content.Server/Administration/Commands/AGhost.cs index 9e4eb4e412..15e5c01aa3 100644 --- a/Content.Server/Administration/Commands/AGhost.cs +++ b/Content.Server/Administration/Commands/AGhost.cs @@ -46,7 +46,7 @@ namespace Content.Server.Administration.Commands var coordinates = player.AttachedEntity != null ? _entities.GetComponent(player.AttachedEntity.Value).Coordinates : EntitySystem.Get().GetObserverSpawnPoint(); - var ghost = _entities.SpawnEntity("AdminObserver", coordinates); + var ghost = _entities.SpawnEntity("AdminObserver", coordinates.ToMap(_entities)); if (canReturn) {