Add back mod validation

This commit is contained in:
smoogipoo 2021-02-02 20:35:31 +09:00
parent 6d620264f4
commit 75f81bfa06

View File

@ -412,9 +412,12 @@ namespace osu.Game.Overlays.Mods
foreach (var section in ModSectionsContainer.Children)
{
section.Mods = Stacked
? availableMods.Value[section.ModType]
: ModUtils.FlattenMods(availableMods.Value[section.ModType]);
IEnumerable<Mod> modEnumeration = availableMods.Value[section.ModType];
if (!Stacked)
modEnumeration = ModUtils.FlattenMods(modEnumeration);
section.Mods = modEnumeration.Where(isValidMod);
}
}