Fix beatmap skin on mania breaking HUD apart

This commit is contained in:
Salman Ahmed 2024-08-15 16:55:03 +09:00
parent 66adddbfb8
commit a421231aad

View File

@ -92,6 +92,10 @@ namespace osu.Game.Rulesets.Mania.Skinning.Legacy
if (base.GetDrawableComponent(lookup) is UserConfiguredLayoutContainer d)
return d;
// we don't have enough assets to display these components (this is especially the case on a "beatmap" skin).
if (!IsProvidingLegacyResources)
return null;
return new DefaultSkinComponentsContainer(container =>
{
var combo = container.ChildrenOfType<LegacyManiaComboCounter>().FirstOrDefault();