diff --git a/MiraAPI/Patches/Keybinds/OptionsMenuBehaviourPatch.cs b/MiraAPI/Patches/Keybinds/OptionsMenuBehaviourPatch.cs index 2511168..816ebf4 100644 --- a/MiraAPI/Patches/Keybinds/OptionsMenuBehaviourPatch.cs +++ b/MiraAPI/Patches/Keybinds/OptionsMenuBehaviourPatch.cs @@ -16,8 +16,15 @@ public static class OptionsMenuBehaviourPatch private static void OpenPostfix(OptionsMenuBehaviour __instance) { _remap_rollover = GameObject.Find("Remap Controls")?.GetComponent()!; - _remap_background = _remap_rollover.transform.FindChild("Background").GetComponent(); - _remap_background.color = _conflicts ? Color.red : Color.white; + try + { + _remap_background = _remap_rollover.transform.FindChild("Background").GetComponent(); + _remap_background.color = _conflicts ? Color.red : Color.white; + } + catch + { + // ignored, this normally breaks when on mobile since there's no remap button screen. + } } [HarmonyPostfix]