Fix centcom and other jobs with setPreference set to false showing up anyway (#25496)
* God dammit pjb * Smol cleanup (cherry picked from commit 237d89cbfe526856dd547a7e9f37b01d87e84361)
This commit is contained in:
parent
8abda21a63
commit
4cced6e9d6
|
|
@ -586,7 +586,9 @@ namespace Content.Client.Preferences.UI
|
|||
_jobList.AddChild(category);
|
||||
}
|
||||
|
||||
var jobs = department.Roles.Select(jobId => _prototypeManager.Index<JobPrototype>(jobId)).ToArray();
|
||||
var jobs = department.Roles.Select(jobId => _prototypeManager.Index<JobPrototype>(jobId))
|
||||
.Where(job => job.SetPreference)
|
||||
.ToArray();
|
||||
Array.Sort(jobs, JobUIComparer.Instance);
|
||||
|
||||
foreach (var job in jobs)
|
||||
|
|
|
|||
Loading…
Reference in New Issue