1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 23:43:03 +08:00

Fix Bot users have all the profile sections in ProfileOverlay

This commit is contained in:
Andrei Zavatski 2019-09-27 09:22:25 +03:00
parent 12b027f2c3
commit 94eacbca5d
2 changed files with 7 additions and 1 deletions

View File

@ -44,7 +44,7 @@ namespace osu.Game.Overlays
Clear();
lastSection = null;
sections = new ProfileSection[]
sections = !user.IsBot ? new ProfileSection[]
{
//new AboutSection(),
new RecentSection(),
@ -53,6 +53,9 @@ namespace osu.Game.Overlays
new HistoricalSection(),
new BeatmapsSection(),
new KudosuSection()
} : new ProfileSection[]
{
//new AboutSection(),
};
tabs = new ProfileTabControl

View File

@ -78,6 +78,9 @@ namespace osu.Game.Users
[JsonProperty(@"is_bng")]
public bool IsBNG;
[JsonProperty(@"is_bot")]
public bool IsBot;
[JsonProperty(@"is_active")]
public bool Active;