Always reset local user settings when a mod is deselected in ModSelectOverlay

This commit is contained in:
Dean Herbert
2021-02-09 13:44:42 +09:00
parent be379e0e3c
commit 8204d360a8
4 changed files with 21 additions and 1 deletions

View File

@ -141,5 +141,16 @@ namespace osu.Game.Rulesets.Mods
ApplySetting(DrainRate, dr => difficulty.DrainRate = dr);
ApplySetting(OverallDifficulty, od => difficulty.OverallDifficulty = od);
}
public override void ResetSettingsToDefaults()
{
base.ResetSettingsToDefaults();
if (difficulty != null)
{
// base implementation potentially overwrite modified defaults that came from a beatmap selection.
TransferSettings(difficulty);
}
}
}
}