mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
Disable eject button on main menu
This commit is contained in:
1 parent
c06e2414ac
commit
ceafb48194
1 file changed
+9
@@ -68,4 +68,13 @@ internal static class MainMenuManagerPatch
|
||||
// Notify UpdateManager that we're in the main menu
|
||||
BAUUpdateManager.Instance?.OnMainMenu();
|
||||
}
|
||||
|
||||
// Disable eject button to prevent it from blocking update button
|
||||
[HarmonyPatch(typeof(EjectMainMenu), nameof(EjectMainMenu.Start))]
|
||||
[HarmonyPrefix]
|
||||
private static bool EjectMainMenu_Start_Prefix(EjectMainMenu __instance)
|
||||
{
|
||||
__instance.gameObject.SetActive(false);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user