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 f93066a commit ac72871
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 ac72871

Please sign in to comment.