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:
parent
12b027f2c3
commit
94eacbca5d
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user