Skip to content

Commit 8bc7d76

Browse files
committed
Fix nuke X3
1 parent 00902e0 commit 8bc7d76

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
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 (station != null)
55-
extended = Comp<StationJobsComponent>(station.Value).ExtendedAccess;
54+
if (TryComp(station, out StationJobsComponent? stationJobs))
55+
extended = stationJobs.ExtendedAccess;
5656

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

Resources/Prototypes/Entities/Stations/SS220_syndicate.yml

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
parent:
44
- BaseStation
55
- BaseStationSS220Syndicate
6-
- BaseStationJobsSpawning
7-
- BaseStationRecords
86
noSpawn: true
97
components:
108
- type: Transform

0 commit comments

Comments
 (0)