Fix the AdjStationJob command (#17070)

This commit is contained in:
Debug
2023-06-03 21:13:48 +02:00
committed by GitHub
parent fbba9a1afb
commit 353882f6f7

View File

@@ -30,7 +30,7 @@ public sealed class AdjustStationJobCommand : IConsoleCommand
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)));
return;