Skip to content

Commit

Permalink
fix: Do not show button on Pause game menu (F3+Esc)
Browse files Browse the repository at this point in the history
magicus committed Apr 21, 2024
1 parent a8094d1 commit 9e3e63b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -21,6 +21,9 @@ public static void postTitleScreenInit(Screen screen) {

public static void postGameMenuScreenInit(Screen screen) {
List<ClickableWidget> buttons = Screens.getButtons(screen);
// If this is the Pause game menu (F3 + Esc), do not inject anything
if (buttons.size() == 1 && buttonHasText(buttons.get(0), "menu.paused")) return;

injectModSettingsButton(screen, buttons, INGAME_FULL_BUTTON_WIDTH, 4, 0);
}

0 comments on commit 9e3e63b

Please sign in to comment.