]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix centcom and other jobs with setPreference set to false showing up anyway (#25496)
authorVasilis <vasilis@pikachu.systems>
Fri, 23 Feb 2024 13:19:52 +0000 (14:19 +0100)
committerGitHub <noreply@github.com>
Fri, 23 Feb 2024 13:19:52 +0000 (14:19 +0100)
* God dammit pjb

* Smol cleanup

Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs

index 9270533642478b52364be35adb1a9e2f003dd2b0..e91d9f616abfc0e81196c2d6d4369c843996afd7 100644 (file)
@@ -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)