1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 17:32:54 +08:00

Don't show warning screen when registering on dev server

This commit is contained in:
Joseph Madamba 2021-05-18 14:23:22 -07:00
parent 41d8bc291c
commit bde7f88eb3

View File

@ -26,11 +26,14 @@ namespace osu.Game.Overlays.AccountCreation
[Resolved(CanBeNull = true)]
private IAPIProvider api { get; set; }
[Resolved]
private OsuGameBase game { get; set; }
private const string help_centre_url = "/help/wiki/Help_Centre#login";
public override void OnEntering(IScreen last)
{
if (string.IsNullOrEmpty(api?.ProvidedUsername))
if (string.IsNullOrEmpty(api?.ProvidedUsername) || game.UseDevelopmentServer)
{
this.FadeOut();
this.Push(new ScreenEntry());