diff --git a/osu.Game/Rulesets/Difficulty/DifficultyAttributes.cs b/osu.Game/Rulesets/Difficulty/DifficultyAttributes.cs
index b1a88b8abd..d808ee528e 100644
--- a/osu.Game/Rulesets/Difficulty/DifficultyAttributes.cs
+++ b/osu.Game/Rulesets/Difficulty/DifficultyAttributes.cs
@@ -7,13 +7,12 @@ namespace osu.Game.Rulesets.Difficulty
{
public class DifficultyAttributes
{
- public readonly Mod[] Mods;
+ public Mod[] Mods;
public double StarRating;
- public DifficultyAttributes(Mod[] mods)
+ public DifficultyAttributes()
{
- Mods = mods;
}
public DifficultyAttributes(Mod[] mods, double starRating)
diff --git a/osu.Game/Rulesets/Difficulty/DifficultyCalculator.cs b/osu.Game/Rulesets/Difficulty/DifficultyCalculator.cs
index d7ae527bb1..30fc698664 100644
--- a/osu.Game/Rulesets/Difficulty/DifficultyCalculator.cs
+++ b/osu.Game/Rulesets/Difficulty/DifficultyCalculator.cs
@@ -25,7 +25,8 @@ namespace osu.Game.Rulesets.Difficulty
protected override DifficultyAttributes Calculate(IBeatmap beatmap, Mod[] mods, double timeRate)
{
- var attributes = CreateDifficultyAttributes(mods);
+ var attributes = CreateDifficultyAttributes();
+ attributes.Mods = mods;
if (!beatmap.HitObjects.Any())
return attributes;
@@ -132,8 +133,7 @@ namespace osu.Game.Rulesets.Difficulty
///
/// Creates an empty .
///
- /// The s which difficulty is being processed with.
/// The empty .
- protected abstract DifficultyAttributes CreateDifficultyAttributes(Mod[] mods);
+ protected abstract DifficultyAttributes CreateDifficultyAttributes();
}
}