mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 18:03:11 +08:00
Add back allowance for tests scenes using empty ShortName
This commit is contained in:
parent
377ba2673a
commit
6c36770eb3
@ -49,6 +49,10 @@ namespace osu.Game.Rulesets
|
||||
{
|
||||
get
|
||||
{
|
||||
// Is the case for many test usages.
|
||||
if (string.IsNullOrEmpty(ShortName))
|
||||
return CreateAllMods();
|
||||
|
||||
if (!mod_reference_cache.TryGetValue(ShortName, out var mods))
|
||||
mod_reference_cache[ShortName] = mods = CreateAllMods().Cast<IMod>().ToArray();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user