1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 00:02:54 +08:00

Clear freemods when ruleset is changed

This commit is contained in:
smoogipoo 2021-02-02 13:54:27 +09:00
parent 4194c9308e
commit 0bce9d6833

View File

@ -60,6 +60,13 @@ namespace osu.Game.Screens.OnlinePlay
freeMods.Value = Playlist.FirstOrDefault()?.AllowedMods.Select(m => m.CreateCopy()).ToArray() ?? Array.Empty<Mod>();
FooterPanels.Add(freeModSelectOverlay);
Ruleset.BindValueChanged(onRulesetChanged);
}
private void onRulesetChanged(ValueChangedEvent<RulesetInfo> ruleset)
{
freeMods.Value = Array.Empty<Mod>();
}
protected sealed override bool OnStart()