Scattershot antag fixes (#27429)

* scattershot antag fixes

* this too?

* dawg fuck this code

* ok so we kinda need this?
This commit is contained in:
Nemanja
2024-05-05 05:23:43 -04:00
committed by GitHub
parent 37d0cb9c90
commit 5183f3ed8b
4 changed files with 17 additions and 15 deletions

View File

@@ -33,8 +33,8 @@ public sealed class PresetIdCardSystem : EntitySystem
var station = _stationSystem.GetOwningStation(uid);
// If we're not on an extended access station, the ID is already configured correctly from MapInit.
if (station == null || !Comp<StationJobsComponent>(station.Value).ExtendedAccess)
return;
if (station == null || !TryComp<StationJobsComponent>(station.Value, out var jobsComp) || !jobsComp.ExtendedAccess)
continue;
SetupIdAccess(uid, card, true);
SetupIdName(uid, card);