mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 13:37:25 +08:00
Fix replays of converted beatmaps failing to download (#5225)
Fix replays of converted beatmaps failing to download
This commit is contained in:
commit
f41c89c3be
@ -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