1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 09:22:54 +08:00

Do not query API for custom rulesets

This commit is contained in:
Bartłomiej Dach 2020-05-01 17:02:28 +02:00
parent 2913a81835
commit 9f091f3a56

View File

@ -68,7 +68,8 @@ namespace osu.Game.Screens.Select
private void calculateRecommendedDifficulties()
{
rulesets.AvailableRulesets.ForEach(rulesetInfo =>
// only query API for built-in rulesets
rulesets.AvailableRulesets.Where(ruleset => ruleset.ID <= 3).ForEach(rulesetInfo =>
{
var req = new GetUserRequest(api.LocalUser.Value.Id, rulesetInfo);