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

Fix weird taiko logic failing for weird reasons that probably should not have been a thing

This commit is contained in:
Dean Herbert 2021-05-31 21:27:11 +09:00
parent 33577cbad5
commit 69c4ccad05

View File

@ -563,7 +563,11 @@ namespace osu.Game.Skinning
// Fall back to using the last piece for components coming from lazer (e.g. "Gameplay/osu/approachcircle" -> "approachcircle").
string lastPiece = componentName.Split('/').Last();
yield return componentName.StartsWith("Gameplay/taiko/", StringComparison.Ordinal) ? "taiko-" + lastPiece : lastPiece;
if (componentName.StartsWith("Gameplay/taiko/", StringComparison.Ordinal))
yield return "taiko-" + lastPiece;
yield return lastPiece;
}
protected override void Dispose(bool isDisposing)