mirror of
https://github.com/osukey/osukey.git
synced 2025-05-06 22:27:25 +09: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)
|
foreach (var section in ModSectionsContainer.Children)
|
||||||
{
|
{
|
||||||
section.Mods = Stacked
|
IEnumerable<Mod> modEnumeration = availableMods.Value[section.ModType];
|
||||||
? availableMods.Value[section.ModType]
|
|
||||||
: ModUtils.FlattenMods(availableMods.Value[section.ModType]);
|
if (!Stacked)
|
||||||
|
modEnumeration = ModUtils.FlattenMods(modEnumeration);
|
||||||
|
|
||||||
|
section.Mods = modEnumeration.Where(isValidMod);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user