mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 04:42:58 +08:00
Fix formatting issues
This commit is contained in:
parent
34429a02e7
commit
be08460bea
@ -14,7 +14,7 @@ namespace osu.Game.Users.Drawables
|
|||||||
{
|
{
|
||||||
private readonly User user;
|
private readonly User user;
|
||||||
|
|
||||||
[Resolved(CanBeNull=true)]
|
[Resolved(CanBeNull = true)]
|
||||||
private IAPIProvider api { get; set; }
|
private IAPIProvider api { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -38,7 +38,7 @@ namespace osu.Game.Users.Drawables
|
|||||||
Texture = textures.Get(user.AvatarUrl.StartsWith('/') ? $"{api.WebsiteRootUrl}{user.AvatarUrl}" : user.AvatarUrl);
|
Texture = textures.Get(user.AvatarUrl.StartsWith('/') ? $"{api.WebsiteRootUrl}{user.AvatarUrl}" : user.AvatarUrl);
|
||||||
else if (user != null && user.Id > 1)
|
else if (user != null && user.Id > 1)
|
||||||
Texture = textures.Get($@"https://a.ppy.sh/{user.Id}");
|
Texture = textures.Get($@"https://a.ppy.sh/{user.Id}");
|
||||||
|
|
||||||
Texture ??= textures.Get(@"Online/avatar-guest");
|
Texture ??= textures.Get(@"Online/avatar-guest");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user