mirror of
https://github.com/ppy/osu
synced 2025-01-31 10:22:02 +00:00
Fix ToBeatmap not using the correct metadata
Metadata is always come from the API via the beatmap set.
This commit is contained in:
parent
56fd4b95cd
commit
c9c04a6200
@ -59,15 +59,17 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
|
||||
public BeatmapInfo ToBeatmap(RulesetStore rulesets)
|
||||
{
|
||||
var set = BeatmapSet.ToBeatmapSet(rulesets);
|
||||
|
||||
return new BeatmapInfo
|
||||
{
|
||||
Metadata = this,
|
||||
Metadata = set.Metadata,
|
||||
Ruleset = rulesets.GetRuleset(ruleset),
|
||||
StarDifficulty = starDifficulty,
|
||||
OnlineBeatmapID = OnlineBeatmapID,
|
||||
Version = version,
|
||||
Status = Status,
|
||||
BeatmapSet = BeatmapSet.ToBeatmapSet(rulesets),
|
||||
BeatmapSet = set,
|
||||
BaseDifficulty = new BeatmapDifficulty
|
||||
{
|
||||
DrainRate = drainRate,
|
||||
|
Loading…
Reference in New Issue
Block a user