Fix settings button breaking

This commit is contained in:
Atony committed 2026-06-28 21:15:30 -05:00
1 parent d0d5056e39
commit b1f0ec6da3
1 file changed
+7 -2
+7 -2
View File
@@ -47,7 +47,12 @@ public static class HudManagerPatches
{
foreach (var aspect in baseButtons.GetComponentsInChildren<AspectPosition>(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<ActionButton>(true))
{
if (button.gameObject == null)
if (!button.gameObject)
{
continue;
}