aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client
diff options
context:
space:
mode:
authorKorean <68877072+koreanspy@users.noreply.github.com>2026-03-05 00:48:06 -0700
committerGitHub <noreply@github.com>2026-03-05 14:48:06 +0700
commit8d5452679ff9800b8d8667dcfcc9fae2884993b8 (patch)
tree14147234564bea95b406daa65c4124620350e1b6 /Minecraft.Client
parentc77bb4dae47000749769d808b4760d0f331e322d (diff)
Updated to work with KBM refactor (#507)
Diffstat (limited to 'Minecraft.Client')
-rw-r--r--Minecraft.Client/Minecraft.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Minecraft.Client/Minecraft.cpp b/Minecraft.Client/Minecraft.cpp
index 70bb8014..3cc9ac59 100644
--- a/Minecraft.Client/Minecraft.cpp
+++ b/Minecraft.Client/Minecraft.cpp
@@ -1485,7 +1485,7 @@ void Minecraft::run_middle()
}
// Utility keys always work regardless of KBM active state
- if(g_KBMInput.IsKeyPressed(KeyboardMouseInput::KEY_PAUSE) && !ui.IsTutorialVisible(i))
+ if(g_KBMInput.IsKeyPressed(KeyboardMouseInput::KEY_PAUSE) && !ui.IsTutorialVisible(i) && !ui.GetMenuDisplayed(i))
{
localplayers[i]->ullButtonsPressed|=1LL<<MINECRAFT_ACTION_PAUSEMENU;
app.DebugPrintf("PAUSE PRESSED (keyboard) - ipad = %d\n",i);