mirror of
https://github.com/ppy/osu
synced 2025-01-24 14:53:18 +00:00
Add back mod validation
This commit is contained in:
parent
6d620264f4
commit
75f81bfa06
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user