mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 12:33:01 +08:00
Fix online ScoreInfo having the wrong ruleset
This commit is contained in:
parent
7c5e4c60c1
commit
9805adc61d
@ -34,7 +34,10 @@ namespace osu.Game.Online.API.Requests
|
||||
private void onSuccess(APILegacyScores r)
|
||||
{
|
||||
foreach (APILegacyScoreInfo score in r.Scores)
|
||||
{
|
||||
score.Beatmap = beatmap;
|
||||
score.Ruleset = ruleset;
|
||||
}
|
||||
}
|
||||
|
||||
protected override WebRequest CreateWebRequest()
|
||||
|
@ -116,17 +116,6 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
[JsonProperty(@"mods")]
|
||||
private string[] modStrings { get; set; }
|
||||
|
||||
public override BeatmapInfo Beatmap
|
||||
{
|
||||
get => base.Beatmap;
|
||||
set
|
||||
{
|
||||
base.Beatmap = value;
|
||||
if (Beatmap.Ruleset != null)
|
||||
Ruleset = value.Ruleset;
|
||||
}
|
||||
}
|
||||
|
||||
public override RulesetInfo Ruleset
|
||||
{
|
||||
get => base.Ruleset;
|
||||
|
Loading…
Reference in New Issue
Block a user