diff --git a/osu.Server.DifficultyCalculator/ServerDifficultyCalculator.cs b/osu.Server.DifficultyCalculator/ServerDifficultyCalculator.cs index 8f303b7..85c28aa 100644 --- a/osu.Server.DifficultyCalculator/ServerDifficultyCalculator.cs +++ b/osu.Server.DifficultyCalculator/ServerDifficultyCalculator.cs @@ -104,12 +104,12 @@ private void run(WorkingBeatmap beatmap, Action(); - foreach (var mapping in attribute.ToDatabaseAttributes()) + foreach (var mapping in attributes.ToDatabaseAttributes()) { parameters.Add(new { @@ -168,13 +168,13 @@ private void processDifficulty(ProcessableItem item, MySqlConnection conn) object param = new { BeatmapId = item.BeatmapID, - Diff = attribute.StarRating, + Diff = attributes.StarRating, AR = item.WorkingBeatmap.BeatmapInfo.Difficulty.ApproachRate, OD = item.WorkingBeatmap.BeatmapInfo.Difficulty.OverallDifficulty, HP = item.WorkingBeatmap.BeatmapInfo.Difficulty.DrainRate, CS = item.WorkingBeatmap.BeatmapInfo.Difficulty.CircleSize, BPM = Math.Round(bpm, 2), - MaxCombo = attribute.MaxCombo, + MaxCombo = attributes.MaxCombo, CountCircle = countCircle, CountSlider = countSlider, CountSpinner = countSpinner,