1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-05 11:23:40 +08:00

Check skin version for legacy catcher sprite

This commit is contained in:
ekrctb
2021-06-09 15:47:23 +09:00
Unverified
parent 7df971a970
commit e5deecf459
@@ -66,10 +66,14 @@ namespace osu.Game.Rulesets.Catch.Skinning.Legacy
return null;
case CatchSkinComponents.Catcher:
// New elements will be ignored when the old element exists.
if (GetTexture(@"fruit-ryuuta") != null ||
GetTexture(@"fruit-ryuuta-0") != null)
return new LegacyCatcherOld();
var version = Source.GetConfig<LegacySkinConfiguration.LegacySetting, decimal>(LegacySkinConfiguration.LegacySetting.Version)?.Value ?? 1;
if (version < 2.3m)
{
if (GetTexture(@"fruit-ryuuta") != null ||
GetTexture(@"fruit-ryuuta-0") != null)
return new LegacyCatcherOld();
}
if (GetTexture(@"fruit-catcher-idle") != null ||
GetTexture(@"fruit-catcher-idle-0") != null)