Expose Mods in DrawableRuleset to avoid using external DI

This commit is contained in:
Dean Herbert
2021-02-11 17:47:29 +09:00
parent aaa0362b12
commit f84ea30637
4 changed files with 5 additions and 9 deletions

View File

@ -18,8 +18,7 @@ namespace osu.Game.Rulesets.Mods
{
public virtual void ApplyToDrawableRuleset(DrawableRuleset<T> drawableRuleset)
{
var mods = (IReadOnlyList<Mod>)drawableRuleset.Dependencies.Get(typeof(IReadOnlyList<Mod>));
drawableRuleset.SetReplayScore(CreateReplayScore(drawableRuleset.Beatmap, mods));
drawableRuleset.SetReplayScore(CreateReplayScore(drawableRuleset.Beatmap, drawableRuleset.Mods));
}
}