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)