From 6a65e44106431207da56d83d3a75da0b009b8170 Mon Sep 17 00:00:00 2001 From: Marvelco Date: Fri, 6 Mar 2026 02:31:41 +0200 Subject: [PATCH] fixed the double block break on single click --- Minecraft.Client/Minecraft.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Minecraft.Client/Minecraft.cpp b/Minecraft.Client/Minecraft.cpp index 3cc9ac59c..798c5a5a4 100644 --- a/Minecraft.Client/Minecraft.cpp +++ b/Minecraft.Client/Minecraft.cpp @@ -3530,11 +3530,14 @@ void Minecraft::tick(bool bFirst, bool bUpdateTextures) } #ifdef _WINDOWS64 + bool actionPressed = InputManager.ButtonPressed(iPad, MINECRAFT_ACTION_ACTION) || (iPad == 0 && g_KBMInput.IsKBMActive() && g_KBMInput.IsMouseButtonPressed(KeyboardMouseInput::MOUSE_LEFT)); bool actionHeld = InputManager.ButtonDown(iPad, MINECRAFT_ACTION_ACTION) || (iPad == 0 && g_KBMInput.IsKBMActive() && g_KBMInput.IsMouseButtonDown(KeyboardMouseInput::MOUSE_LEFT)); #else + bool actionPressed = InputManager.ButtonPressed(iPad, MINECRAFT_ACTION_ACTION); bool actionHeld = InputManager.ButtonDown(iPad, MINECRAFT_ACTION_ACTION); #endif - if (actionHeld && ticks - player->lastClickTick[0] >= timer->ticksPerSecond / 4) + + if (actionPressed) { //printf("MINECRAFT_ACTION_ACTION ButtonDown"); player->handleMouseClick(0);