Fix the AdjStationJob command (#17070)
This commit is contained in:
@@ -30,7 +30,7 @@ public sealed class AdjustStationJobCommand : IConsoleCommand
|
|||||||
|
|
||||||
var stationJobs = _entSysManager.GetEntitySystem<StationJobsSystem>();
|
var stationJobs = _entSysManager.GetEntitySystem<StationJobsSystem>();
|
||||||
|
|
||||||
if (!EntityUid.TryParse(args[0], out var station) || _entityManager.HasComponent<StationDataComponent>(station))
|
if (!EntityUid.TryParse(args[0], out var station) || !_entityManager.HasComponent<StationDataComponent>(station))
|
||||||
{
|
{
|
||||||
shell.WriteError(Loc.GetString("shell-argument-station-id-invalid", ("index", 1)));
|
shell.WriteError(Loc.GetString("shell-argument-station-id-invalid", ("index", 1)));
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user