mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 09:07:25 +08:00
Fix incorrect fallback logic causing test failure
This commit is contained in:
parent
ee22c24370
commit
0aedbbe165
@ -51,9 +51,6 @@ namespace osu.Game.Rulesets
|
||||
/// <exception cref="InvalidOperationException">If <paramref name="ruleset"/> doesn't have a valid <see cref="RulesetInfo.ID"/>.</exception>
|
||||
public IRulesetConfigManager GetConfigFor(Ruleset ruleset)
|
||||
{
|
||||
if (string.IsNullOrEmpty(ruleset.ShortName))
|
||||
return null;
|
||||
|
||||
if (!configCache.TryGetValue(ruleset.RulesetInfo.ShortName, out var config))
|
||||
// any ruleset request which wasn't initialised on startup should not be stored to realm.
|
||||
// this should only be used by tests.
|
||||
|
Loading…
Reference in New Issue
Block a user