From 237d89cbfe526856dd547a7e9f37b01d87e84361 Mon Sep 17 00:00:00 2001 From: Vasilis Date: Fri, 23 Feb 2024 14:19:52 +0100 Subject: [PATCH] Fix centcom and other jobs with setPreference set to false showing up anyway (#25496) * God dammit pjb * Smol cleanup --- Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs b/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs index 9270533642..e91d9f616a 100644 --- a/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs +++ b/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs @@ -586,7 +586,9 @@ namespace Content.Client.Preferences.UI _jobList.AddChild(category); } - var jobs = department.Roles.Select(jobId => _prototypeManager.Index(jobId)).ToArray(); + var jobs = department.Roles.Select(jobId => _prototypeManager.Index(jobId)) + .Where(job => job.SetPreference) + .ToArray(); Array.Sort(jobs, JobUIComparer.Instance); foreach (var job in jobs) -- 2.52.0