From c44f173f5e14f68e114b2b6d49b9cc20696e4f3a Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Sun, 16 Oct 2022 12:26:24 +1300 Subject: [PATCH] Fix aghost parenting issues. (#11936) --- Content.Server/Administration/Commands/AGhost.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Server/Administration/Commands/AGhost.cs b/Content.Server/Administration/Commands/AGhost.cs index dce4d9d4a2..15dde5b1ee 100644 --- a/Content.Server/Administration/Commands/AGhost.cs +++ b/Content.Server/Administration/Commands/AGhost.cs @@ -1,4 +1,4 @@ -using Content.Server.GameTicking; +using Content.Server.GameTicking; using Content.Server.Ghost.Components; using Content.Server.Players; using Content.Shared.Administration; @@ -45,6 +45,7 @@ namespace Content.Server.Administration.Commands ? _entities.GetComponent(player.AttachedEntity.Value).Coordinates : EntitySystem.Get().GetObserverSpawnPoint(); var ghost = _entities.SpawnEntity("AdminObserver", coordinates); + _entities.GetComponent(ghost).AttachToGridOrMap(); if (canReturn) {