1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

correct logic of hasKeyTexture determination

This commit is contained in:
mcendu 2020-06-13 23:12:15 +08:00
parent ffae73a966
commit 9a0a1ba0df

View File

@ -71,7 +71,7 @@ namespace osu.Game.Rulesets.Mania.Skinning
{
isLegacySkin = new Lazy<bool>(() => source.GetConfig<LegacySkinConfiguration.LegacySetting, decimal>(LegacySkinConfiguration.LegacySetting.Version) != null);
hasKeyTexture = new Lazy<bool>(() => source.GetAnimation(
this.GetManiaSkinConfig<string>(LegacyManiaSkinConfigurationLookups.KeyImage)?.Value
this.GetManiaSkinConfig<string>(LegacyManiaSkinConfigurationLookups.KeyImage, 0)?.Value
?? "mania-key1", true, true) != null);
}