mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Add protection against rulesets returning null mods
This commit is contained in:
@ -519,7 +519,9 @@ namespace osu.Game
|
||||
|
||||
foreach (ModType type in Enum.GetValues(typeof(ModType)))
|
||||
{
|
||||
dict[type] = instance.GetModsFor(type).ToList();
|
||||
dict[type] = instance.GetModsFor(type)
|
||||
.Where(mod => mod != null)
|
||||
.ToList();
|
||||
}
|
||||
|
||||
if (!SelectedMods.Disabled)
|
||||
|
Reference in New Issue
Block a user