Fix F3 opening host menu (#522)

* Fix debug menu opening game info menu

* remove redundant F4 handling
This commit is contained in:
Alezito2008
2026-03-05 04:26:19 -03:00
committed by GitHub
parent 91e50aa346
commit 053eb0119c
3 changed files with 3 additions and 15 deletions

View File

@@ -1569,19 +1569,6 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
}
#ifdef _DEBUG_MENUS_ENABLED
// F4 Open debug overlay
if (g_KBMInput.IsKeyPressed(VK_F4))
{
if (Minecraft *pMinecraft = Minecraft::GetInstance())
{
if (pMinecraft->options &&
app.GetGameStarted() && !ui.GetMenuDisplayed(0) && pMinecraft->screen == NULL)
{
ui.NavigateToScene(0, eUIScene_DebugOverlay, NULL, eUILayer_Debug);
}
}
}
// F6 Open debug console
if (g_KBMInput.IsKeyPressed(VK_F6))
{