Goes in-game now
This commit is contained in:
@@ -42,9 +42,9 @@ namespace Content.Server.Administration.Commands
|
||||
return;
|
||||
}
|
||||
|
||||
var canReturn = mind.CurrentEntity != default;
|
||||
var coordinates = player.AttachedEntity != default
|
||||
? _entities.GetComponent<TransformComponent>(player.AttachedEntity).Coordinates
|
||||
var canReturn = mind.CurrentEntity != null;
|
||||
var coordinates = player.AttachedEntity != null
|
||||
? _entities.GetComponent<TransformComponent>(player.AttachedEntity.Value).Coordinates
|
||||
: EntitySystem.Get<GameTicker>().GetObserverSpawnPoint();
|
||||
var ghost = _entities.SpawnEntity("AdminObserver", coordinates);
|
||||
|
||||
|
||||
@@ -30,12 +30,12 @@ namespace Content.Server.Administration.Commands
|
||||
if (args.Length < 1 && shell.Player is IPlayerSession player) //Try to heal the users mob if applicable
|
||||
{
|
||||
shell.WriteLine(Loc.GetString("rejuvenate-command-self-heal-message"));
|
||||
if (player.AttachedEntity == default)
|
||||
if (player.AttachedEntity == null)
|
||||
{
|
||||
shell.WriteLine(Loc.GetString("rejuvenate-command-no-entity-attached-message"));
|
||||
return;
|
||||
}
|
||||
PerformRejuvenate(player.AttachedEntity);
|
||||
PerformRejuvenate(player.AttachedEntity.Value);
|
||||
}
|
||||
|
||||
var entityManager = IoCManager.Resolve<IEntityManager>();
|
||||
|
||||
Reference in New Issue
Block a user