mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:22:55 +08:00
Fix crash in testing environment.
This commit is contained in:
parent
f63c66396f
commit
275d95082a
@ -22,7 +22,7 @@ namespace osu.Game.Screens.Select
|
||||
private bool removeAutoModOnResume;
|
||||
private OsuScreen player;
|
||||
|
||||
[Resolved]
|
||||
[Resolved(CanBeNull = true)]
|
||||
private NotificationOverlay notifications { get; set; }
|
||||
|
||||
public override bool AllowExternalScreenChange => true;
|
||||
@ -92,7 +92,7 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
if (autoType == null)
|
||||
{
|
||||
notifications.Post(new SimpleNotification
|
||||
notifications?.Post(new SimpleNotification
|
||||
{
|
||||
Text = "The current ruleset doesn't have an autoplay mod avalaible!"
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user