mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Remove mods from workingbeatmap
This commit is contained in:
@ -57,13 +57,15 @@ namespace osu.Game.Rulesets.UI
|
||||
hitObjectContainerLazy = new Lazy<HitObjectContainer>(CreateHitObjectContainer);
|
||||
}
|
||||
|
||||
private WorkingBeatmap beatmap;
|
||||
[Resolved]
|
||||
private IBindable<WorkingBeatmap> beatmap { get; set; }
|
||||
|
||||
[Resolved]
|
||||
private IBindable<IEnumerable<Mod>> selectedMods { get; set; }
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(IBindable<WorkingBeatmap> beatmap)
|
||||
private void load()
|
||||
{
|
||||
this.beatmap = beatmap.Value;
|
||||
|
||||
Cursor = CreateCursor();
|
||||
if (Cursor != null)
|
||||
AddInternal(Cursor);
|
||||
@ -123,7 +125,7 @@ namespace osu.Game.Rulesets.UI
|
||||
base.Update();
|
||||
|
||||
if (beatmap != null)
|
||||
foreach (var mod in beatmap.Mods.Value)
|
||||
foreach (var mod in selectedMods.Value)
|
||||
if (mod is IUpdatableByPlayfield updatable)
|
||||
updatable.Update(this);
|
||||
}
|
||||
|
Reference in New Issue
Block a user