From bb0b678747e3f70afb359ff094c2f6940cd6531d Mon Sep 17 00:00:00 2001 From: XtraCube <72575280+XtraCube@users.noreply.github.com> Date: Mon, 24 Mar 2025 18:57:06 -0400 Subject: [PATCH] fix VERY stupid issue with LobbyViewPanePatches.cs --- MiraAPI/Patches/Options/LobbyViewPanePatches.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/MiraAPI/Patches/Options/LobbyViewPanePatches.cs b/MiraAPI/Patches/Options/LobbyViewPanePatches.cs index 43c5719..afbcdae 100644 --- a/MiraAPI/Patches/Options/LobbyViewPanePatches.cs +++ b/MiraAPI/Patches/Options/LobbyViewPanePatches.cs @@ -250,14 +250,9 @@ public static class LobbyViewPanePatches var list = new List(); - var roleGroups = GameSettingMenuPatches.SelectedMod?.CustomRoles.Values.OfType() + var roleGroups = SelectedMod.CustomRoles.Values.OfType() .ToLookup(x => x.RoleOptionsGroup); - if (roleGroups is null) - { - return; - } - // sort the groups by priority var sortedRoleGroups = roleGroups .OrderBy(x => x.Key.Priority)