mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +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)))
|
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)
|
if (!SelectedMods.Disabled)
|
||||||
|
Reference in New Issue
Block a user