mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +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
|
get
|
||||||
{
|
{
|
||||||
|
// Is the case for many test usages.
|
||||||
|
if (string.IsNullOrEmpty(ShortName))
|
||||||
|
return CreateAllMods();
|
||||||
|
|
||||||
if (!mod_reference_cache.TryGetValue(ShortName, out var mods))
|
if (!mod_reference_cache.TryGetValue(ShortName, out var mods))
|
||||||
mod_reference_cache[ShortName] = mods = CreateAllMods().Cast<IMod>().ToArray();
|
mod_reference_cache[ShortName] = mods = CreateAllMods().Cast<IMod>().ToArray();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user