1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00
This commit is contained in:
MrTheMake 2017-08-19 00:13:06 +02:00
parent 6d401b5f21
commit f831832c59

View File

@ -38,11 +38,8 @@ namespace osu.Game.Rulesets.Scoring
{
get
{
// Evaluate the mod strings
if (mods == null)
mods = Ruleset.CreateInstance().GetAllMods().Where(mod => modStrings.Contains(mod.ShortenedName)).ToArray();
return mods;
// Evaluate the mod strings if necessary
return mods ?? (mods = Ruleset.CreateInstance().GetAllMods().Where(mod => modStrings.Contains(mod.ShortenedName)).ToArray());
}
set
{