mirror of
https://github.com/ppy/osu
synced 2025-02-18 19:36:58 +00:00
Remove unnecessary dependency, allow null mods
This commit is contained in:
parent
1ed38e505c
commit
66486b094c
@ -10,7 +10,6 @@ using osu.Framework.Allocation;
|
||||
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 @@ namespace osu.Game.Rulesets.UI
|
||||
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 @@ namespace osu.Game.Rulesets.UI
|
||||
{
|
||||
base.Update();
|
||||
|
||||
if (beatmap != null)
|
||||
if (mods != null)
|
||||
{
|
||||
foreach (var mod in mods)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user