1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 04:07:25 +08:00

Remove usage of ToBeatmapInfo in APIScoreInfo.CreateScoreInfo

This commit is contained in:
Dean Herbert 2021-11-04 16:17:50 +09:00
parent 8a873bd6b1
commit 7bab487621

View File

@ -98,7 +98,7 @@ namespace osu.Game.Online.API.Requests.Responses
{ {
TotalScore = TotalScore, TotalScore = TotalScore,
MaxCombo = MaxCombo, MaxCombo = MaxCombo,
BeatmapInfo = Beatmap?.ToBeatmapInfo(rulesets), BeatmapInfo = beatmap,
User = User, User = User,
Accuracy = Accuracy, Accuracy = Accuracy,
OnlineScoreID = OnlineID, OnlineScoreID = OnlineID,
@ -111,9 +111,6 @@ namespace osu.Game.Online.API.Requests.Responses
Mods = modInstances, Mods = modInstances,
}; };
if (beatmap != null)
scoreInfo.BeatmapInfo = beatmap;
if (Statistics != null) if (Statistics != null)
{ {
foreach (var kvp in Statistics) foreach (var kvp in Statistics)