mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 21:48:58 +03:00
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:
@@ -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