From b1f0ec6da36168e11d9124b1531d5db6ce25bc7f Mon Sep 17 00:00:00 2001 From: Atony <75191600+AtonyGit@users.noreply.github.com> Date: Sun, 28 Jun 2026 21:15:30 -0500 Subject: [PATCH] Fix settings button breaking --- MiraAPI/Patches/HudManagerPatches.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/MiraAPI/Patches/HudManagerPatches.cs b/MiraAPI/Patches/HudManagerPatches.cs index e3a6b91..d138532 100644 --- a/MiraAPI/Patches/HudManagerPatches.cs +++ b/MiraAPI/Patches/HudManagerPatches.cs @@ -47,7 +47,12 @@ public static class HudManagerPatches { foreach (var aspect in baseButtons.GetComponentsInChildren(true)) { - if (aspect.gameObject == null) + if (!aspect.gameObject) + { + continue; + } + + if (aspect.gameObject.transform.parent.name == "TopRight") { continue; } @@ -65,7 +70,7 @@ public static class HudManagerPatches foreach (var button in HudManager.Instance.GetComponentsInChildren(true)) { - if (button.gameObject == null) + if (!button.gameObject) { continue; }