1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 20:23:00 +08:00

Fix enabling beatmap skin cause hitobjects to use LegacyApproachCircle regardless of selected skin

This commit is contained in:
Salman Ahmed 2024-01-17 16:35:39 +03:00
parent e54d20ea93
commit ed1e66b8f9

View File

@ -2,6 +2,7 @@
// See the LICENCE file in the repository root for full licence text.
using System;
using NUnit.Framework;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Game.Rulesets.Osu.Objects;
@ -163,7 +164,10 @@ namespace osu.Game.Rulesets.Osu.Skinning.Legacy
return null;
case OsuSkinComponents.ApproachCircle:
return new LegacyApproachCircle();
if (IsProvidingLegacyResources)
return new LegacyApproachCircle();
return null;
default:
throw new UnsupportedSkinComponentException(lookup);