1
0
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:
Lucas A 2020-06-02 16:01:01 +02:00
parent f63c66396f
commit 275d95082a

View File

@ -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!"
});