Fix Punpun crew monitor sensor (#20484)
This commit is contained in:
@@ -37,6 +37,7 @@ namespace Content.Server.Access.Systems
|
||||
return;
|
||||
|
||||
SetupIdAccess(uid, card, true);
|
||||
SetupIdName(uid, card);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,6 +54,14 @@ namespace Content.Server.Access.Systems
|
||||
extended = Comp<StationJobsComponent>(station.Value).ExtendedAccess;
|
||||
|
||||
SetupIdAccess(uid, id, extended);
|
||||
SetupIdName(uid, id);
|
||||
}
|
||||
|
||||
private void SetupIdName(EntityUid uid, PresetIdCardComponent id)
|
||||
{
|
||||
if (id.IdName == null)
|
||||
return;
|
||||
_cardSystem.TryChangeFullName(uid, id.IdName);
|
||||
}
|
||||
|
||||
private void SetupIdAccess(EntityUid uid, PresetIdCardComponent id, bool extended)
|
||||
|
||||
Reference in New Issue
Block a user