mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Simplify conditions
This commit is contained in:
@ -111,22 +111,12 @@ namespace osu.Game.Screens.Select.Leaderboards
|
||||
return null;
|
||||
}
|
||||
|
||||
if (Beatmap?.OnlineBeatmapID == null)
|
||||
if (Beatmap?.OnlineBeatmapID == null || Beatmap?.Status <= BeatmapSetOnlineStatus.Pending)
|
||||
{
|
||||
PlaceholderState = PlaceholderState.Unavailable;
|
||||
return null;
|
||||
}
|
||||
|
||||
switch (Beatmap?.Status)
|
||||
{
|
||||
case BeatmapSetOnlineStatus.Graveyard:
|
||||
case BeatmapSetOnlineStatus.None:
|
||||
case BeatmapSetOnlineStatus.Pending:
|
||||
case BeatmapSetOnlineStatus.WIP:
|
||||
PlaceholderState = PlaceholderState.Unavailable;
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!api.LocalUser.Value.IsSupporter && (Scope != BeatmapLeaderboardScope.Global || filterMods))
|
||||
{
|
||||
PlaceholderState = PlaceholderState.NotSupporter;
|
||||
|
Reference in New Issue
Block a user