Fix IDs without station records not being able to have nonstandard contents (#34921)
* fix ID console resetting to passenger * review * whoopsie! whitespace --------- Co-authored-by: Milon <milonpl.git@proton.me>
This commit is contained in:
@@ -174,7 +174,8 @@ namespace Content.Client.Access.UI
|
||||
new List<ProtoId<AccessLevelPrototype>>());
|
||||
|
||||
var jobIndex = _jobPrototypeIds.IndexOf(state.TargetIdJobPrototype);
|
||||
// If the job index is < 0 that means they don't have a job registered in the station records.
|
||||
// If the job index is < 0 that means they don't have a job registered in the station records
|
||||
// or the IdCardComponent's JobPrototype field.
|
||||
// For example, a new ID from a box would have no job index.
|
||||
if (jobIndex < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user