mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 04:13:00 +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)
|
private void onSuccess(APILegacyScores r)
|
||||||
{
|
{
|
||||||
foreach (APILegacyScoreInfo score in r.Scores)
|
foreach (APILegacyScoreInfo score in r.Scores)
|
||||||
|
{
|
||||||
score.Beatmap = beatmap;
|
score.Beatmap = beatmap;
|
||||||
|
score.Ruleset = ruleset;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override WebRequest CreateWebRequest()
|
protected override WebRequest CreateWebRequest()
|
||||||
|
@ -116,17 +116,6 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
[JsonProperty(@"mods")]
|
[JsonProperty(@"mods")]
|
||||||
private string[] modStrings { get; set; }
|
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
|
public override RulesetInfo Ruleset
|
||||||
{
|
{
|
||||||
get => base.Ruleset;
|
get => base.Ruleset;
|
||||||
|
Loading…
Reference in New Issue
Block a user