mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
fixed the double block break on single click
This commit is contained in:
parent
9f39a124d5
commit
6a65e44106
|
|
@ -3530,11 +3530,14 @@ void Minecraft::tick(bool bFirst, bool bUpdateTextures)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _WINDOWS64
|
#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));
|
bool actionHeld = InputManager.ButtonDown(iPad, MINECRAFT_ACTION_ACTION) || (iPad == 0 && g_KBMInput.IsKBMActive() && g_KBMInput.IsMouseButtonDown(KeyboardMouseInput::MOUSE_LEFT));
|
||||||
#else
|
#else
|
||||||
|
bool actionPressed = InputManager.ButtonPressed(iPad, MINECRAFT_ACTION_ACTION);
|
||||||
bool actionHeld = InputManager.ButtonDown(iPad, MINECRAFT_ACTION_ACTION);
|
bool actionHeld = InputManager.ButtonDown(iPad, MINECRAFT_ACTION_ACTION);
|
||||||
#endif
|
#endif
|
||||||
if (actionHeld && ticks - player->lastClickTick[0] >= timer->ticksPerSecond / 4)
|
|
||||||
|
if (actionPressed)
|
||||||
{
|
{
|
||||||
//printf("MINECRAFT_ACTION_ACTION ButtonDown");
|
//printf("MINECRAFT_ACTION_ACTION ButtonDown");
|
||||||
player->handleMouseClick(0);
|
player->handleMouseClick(0);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue