1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-01 19:43:09 +08:00

Fetch ruleset before initialising beatmap the first time

This commit is contained in:
Dean Herbert 2024-12-21 20:17:27 +09:00
parent 881623d47d
commit 1fcd953e4a
No known key found for this signature in database

View File

@ -49,11 +49,11 @@ namespace osu.Game.Seasonal
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(IBindable<WorkingBeatmap> working, RulesetStore rulesets) private void load(IBindable<WorkingBeatmap> working, RulesetStore rulesets)
{ {
this.working = working.GetBoundCopy();
this.working.BindValueChanged(_ => Scheduler.AddOnce(updateBeatmap), true);
// operate in osu! ruleset to keep things simple for now. // operate in osu! ruleset to keep things simple for now.
osuRuleset = rulesets.GetRuleset(0); osuRuleset = rulesets.GetRuleset(0);
this.working = working.GetBoundCopy();
this.working.BindValueChanged(_ => Scheduler.AddOnce(updateBeatmap), true);
} }
private void updateBeatmap() private void updateBeatmap()