A bunch of AttachedEntity bullshit
This commit is contained in:
@@ -43,8 +43,8 @@ namespace Content.Server.Administration.Commands
|
||||
}
|
||||
|
||||
var canReturn = mind.CurrentEntity != default;
|
||||
var coordinates = player.AttachedEntity.HasValue
|
||||
? _entities.GetComponent<TransformComponent>(player.AttachedEntity.Value).Coordinates
|
||||
var coordinates = player.AttachedEntity != default
|
||||
? _entities.GetComponent<TransformComponent>(player.AttachedEntity).Coordinates
|
||||
: EntitySystem.Get<GameTicker>().GetObserverSpawnPoint();
|
||||
var ghost = _entities.SpawnEntity("AdminObserver", coordinates);
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace Content.Server.Administration.Commands
|
||||
shell.WriteLine(Loc.GetString("rejuvenate-command-no-entity-attached-message"));
|
||||
return;
|
||||
}
|
||||
PerformRejuvenate(player.AttachedEntity.Value);
|
||||
PerformRejuvenate(player.AttachedEntity);
|
||||
}
|
||||
|
||||
var entityManager = IoCManager.Resolve<IEntityManager>();
|
||||
|
||||
Reference in New Issue
Block a user