mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 20:47:51 +08:00
Fix unranked beatmap leaderboards showing "no records" placeholder
This commit is contained in:
parent
0ec01f7b0f
commit
e8168037f9
@ -68,10 +68,14 @@ namespace osu.Game.Screens.Select.Leaderboards
|
||||
return null;
|
||||
}
|
||||
|
||||
if (Beatmap?.OnlineBeatmapID == null)
|
||||
switch (Beatmap?.Status)
|
||||
{
|
||||
PlaceholderState = PlaceholderState.Unavailable;
|
||||
return null;
|
||||
case BeatmapSetOnlineStatus.Graveyard:
|
||||
case BeatmapSetOnlineStatus.None:
|
||||
case BeatmapSetOnlineStatus.Pending:
|
||||
case BeatmapSetOnlineStatus.WIP:
|
||||
PlaceholderState = PlaceholderState.Unavailable;
|
||||
return null;
|
||||
}
|
||||
|
||||
if (Scope != BeatmapLeaderboardScope.Global && !api.LocalUser.Value.IsSupporter)
|
||||
|
Loading…
Reference in New Issue
Block a user