mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
Add back allowance for tests scenes using empty ShortName
This commit is contained in:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user