mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 00:42:55 +08:00
Move check inside next difficulty selection
This commit is contained in:
parent
77258659e4
commit
099416b4c3
@ -279,9 +279,6 @@ namespace osu.Game.Screens.Select
|
||||
/// <param name="skipDifficulties">Whether to skip individual difficulties and only increment over full groups.</param>
|
||||
public void SelectNext(int direction = 1, bool skipDifficulties = true)
|
||||
{
|
||||
if (selectedBeatmap == null)
|
||||
return;
|
||||
|
||||
if (beatmapSets.All(s => s.Filtered.Value))
|
||||
return;
|
||||
|
||||
@ -305,6 +302,9 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
private void selectNextDifficulty(int direction)
|
||||
{
|
||||
if (selectedBeatmap == null)
|
||||
return;
|
||||
|
||||
var unfilteredDifficulties = selectedBeatmapSet.Children.Where(s => !s.Filtered.Value).ToList();
|
||||
|
||||
int index = unfilteredDifficulties.IndexOf(selectedBeatmap);
|
||||
|
Loading…
Reference in New Issue
Block a user