diff --git a/osu.Game/Utils/ModUtils.cs b/osu.Game/Utils/ModUtils.cs
index d5ea74c404..bccb706842 100644
--- a/osu.Game/Utils/ModUtils.cs
+++ b/osu.Game/Utils/ModUtils.cs
@@ -153,31 +153,17 @@ namespace osu.Game.Utils
}
///
- /// Verifies all proposed mods are valid for a given ruleset and returns instantiated s for further processing.
+ /// Returns an instantiated list of all proposed mods on a given ruleset.
///
- /// The ruleset to verify mods against.
+ /// The ruleset to instantiate mods.
/// The proposed mods.
- /// Mods instantiated from which were valid for the given .
- /// Whether all were valid for the given .
- public static bool InstantiateValidModsForRuleset(Ruleset ruleset, IEnumerable proposedMods, out List valid)
+ /// Mods instantiated from on the given .
+ public static void InstantiateModsForRuleset(Ruleset ruleset, IEnumerable proposedMods, out List mods)
{
- valid = new List();
- bool proposedWereValid = true;
+ mods = new List();
foreach (var apiMod in proposedMods)
- {
- try
- {
- // will throw if invalid
- valid.Add(apiMod.ToMod(ruleset));
- }
- catch
- {
- proposedWereValid = false;
- }
- }
-
- return proposedWereValid;
+ mods.Add(apiMod.ToMod(ruleset));
}
}
}