Skip to content

Commit db6e4c8

Browse files
committed
Fix nuke X4
1 parent 8bc7d76 commit db6e4c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Content.Server/Access/Systems/PresetIdCardSystem.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ private void OnMapInit(EntityUid uid, PresetIdCardComponent id, MapInitEvent arg
5151

5252
var station = _stationSystem.GetOwningStation(uid);
5353
var extended = false;
54-
if (TryComp(station, out StationJobsComponent? stationJobs))
55-
extended = stationJobs.ExtendedAccess;
54+
if (station != null)
55+
extended = Comp<StationJobsComponent>(station.Value).ExtendedAccess;
5656

5757
SetupIdAccess(uid, id, extended);
5858
SetupIdName(uid, id);

0 commit comments

Comments
 (0)