1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 00:02:56 +08:00

Remove allowance of null dependency

This commit is contained in:
Dan Balasescu 2022-02-10 14:18:29 +09:00
parent 18251c9285
commit a3896a8ebd

View File

@ -28,7 +28,7 @@ namespace osu.Game.Rulesets.UI
public int RecordFrameRate = 60; public int RecordFrameRate = 60;
[Resolved(canBeNull: true)] [Resolved]
private SpectatorClient spectatorClient { get; set; } private SpectatorClient spectatorClient { get; set; }
[Resolved] [Resolved]
@ -48,8 +48,7 @@ namespace osu.Game.Rulesets.UI
base.LoadComplete(); base.LoadComplete();
inputManager = GetContainingInputManager(); inputManager = GetContainingInputManager();
spectatorClient.BeginPlaying(gameplayState, target);
spectatorClient?.BeginPlaying(gameplayState, target);
} }
protected override void Dispose(bool isDisposing) protected override void Dispose(bool isDisposing)