Fix centcom and other jobs with setPreference set to false showing up anyway (#25496)
* God dammit pjb * Smol cleanup
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user