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
1 changed files with 4 additions and 0 deletions

View File

@ -92,6 +92,10 @@ public override Drawable GetDrawableComponent(ISkinComponentLookup lookup)
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();