-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix mod icons potentially showing incorrectly at daily challenge intro #29560
Fix mod icons potentially showing incorrectly at daily challenge intro #29560
Conversation
Prefer using the beatmap's rulesets over the current user selection. Closes ppy#29559.
StarRatingDisplay starRatingDisplay; | ||
|
||
IBeatmapInfo beatmap = item.Beatmap; | ||
Ruleset ruleset = rulesets.GetRuleset(item.Beatmap.Ruleset.ShortName)?.CreateInstance() ?? Ruleset.Value.CreateInstance(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this still fallback to Ruleset.Value.CreateInstance()
? I don't see the point, it can literally be only more wrong than the left half of this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think the mods just shouldn't show in this case? Because I think that would be the closest alternative (we need a ruleset to show the ??
mods).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd just delete the fallback here and be done with it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. I guess it's always going to be an official ruleset anyway.
Prefer using the beatmap's rulesets over the current user selection.
Closes #29559.