1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-10 02:13:40 +08:00

Merge pull request #32949 from bdach/exclude-non-user-playable-mods-from-leaderboard-filter

Exclude non-user-playable mods from mod filter in beatmap leaderboard
This commit is contained in:
Dean Herbert
2025-04-28 18:30:49 +09:00
committed by GitHub
Unverified
@@ -100,7 +100,7 @@ namespace osu.Game.Screens.Select.Leaderboards
// For now, we forcefully refresh to keep things simple.
// In the future, removing this requirement may be deemed useful, but will need ample testing of edge case scenarios
// (like returning from gameplay after setting a new score, returning to song select after main menu).
leaderboardManager.FetchWithCriteria(new LeaderboardCriteria(fetchBeatmapInfo, fetchRuleset, Scope, filterMods ? mods.Value.ToArray() : null), forceRefresh: true);
leaderboardManager.FetchWithCriteria(new LeaderboardCriteria(fetchBeatmapInfo, fetchRuleset, Scope, filterMods ? mods.Value.Where(m => m.UserPlayable).ToArray() : null), forceRefresh: true);
if (!initialFetchComplete)
{