mirror of https://github.com/ppy/osu
Remove unnecessary dependency, allow null mods
This commit is contained in:
parent
1ed38e505c
commit
66486b094c
|
@ -10,7 +10,6 @@
|
|||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Extensions.IEnumerableExtensions;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Rulesets.Mods;
|
||||
using osuTK;
|
||||
|
||||
|
@ -62,10 +61,7 @@ protected Playfield()
|
|||
hitObjectContainerLazy = new Lazy<HitObjectContainer>(CreateHitObjectContainer);
|
||||
}
|
||||
|
||||
[Resolved]
|
||||
private IBindable<WorkingBeatmap> beatmap { get; set; }
|
||||
|
||||
[Resolved]
|
||||
[Resolved(CanBeNull = true)]
|
||||
private IReadOnlyList<Mod> mods { get; set; }
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
|
@ -137,7 +133,7 @@ protected override void Update()
|
|||
{
|
||||
base.Update();
|
||||
|
||||
if (beatmap != null)
|
||||
if (mods != null)
|
||||
{
|
||||
foreach (var mod in mods)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue