Detach ghosts from parents on spawn (#6816)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user