Fix difficulty adjust mod not correctly reading settings while leaderboard visible

This commit is contained in:
Dean Herbert
2019-12-26 14:52:08 +09:00
parent 5a11fe9a84
commit f603dd82bc
5 changed files with 40 additions and 3 deletions

View File

@ -47,17 +47,17 @@ namespace osu.Game.Rulesets.Mods
private BeatmapDifficulty difficulty;
public void ApplyToDifficulty(BeatmapDifficulty difficulty)
public void ReadFromDifficulty(BeatmapDifficulty difficulty)
{
if (this.difficulty == null || this.difficulty.ID != difficulty.ID)
{
this.difficulty = difficulty;
TransferSettings(difficulty);
}
else
ApplySettings(difficulty);
}
public void ApplyToDifficulty(BeatmapDifficulty difficulty) => ApplySettings(difficulty);
/// <summary>
/// Transfer initial settings from the beatmap to settings.
/// </summary>