diff --git a/MiraAPI/Patches/Options/RoleSettingMenuPatches.cs b/MiraAPI/Patches/Options/RoleSettingMenuPatches.cs index 4dc7317..0950bb5 100644 --- a/MiraAPI/Patches/Options/RoleSettingMenuPatches.cs +++ b/MiraAPI/Patches/Options/RoleSettingMenuPatches.cs @@ -334,8 +334,9 @@ public static class RoleSettingMenuPatches // TODO: create sub groups under the role settings. var filteredOptions = GameSettingMenuPatches.SelectedMod?.InternalOptionGroups - .Where(x=> x.OptionableType == role.GetType()) - .SelectMany(x=>x.Options) + .Where(x => x.GroupVisible() && x.OptionableType == role.GetType()) + .SelectMany(x => x.Options) + .Where(x => x.Visible()) .ToList() ?? []; foreach (var option in filteredOptions)