Fix: Do not send a drop item message on hand swap

This commit is contained in:
Mathias Boulay 2023-10-29 11:19:07 +01:00
parent 88149ae889
commit 62dd60d96c

View File

@ -313,9 +313,10 @@ public class MinecraftGLSurface extends View implements GrabListener {
if(hasDoubleTapped && hudKeyHandled == mLastHotbarKey && !PREF_DISABLE_SWAP_HAND){ if(hasDoubleTapped && hudKeyHandled == mLastHotbarKey && !PREF_DISABLE_SWAP_HAND){
//Prevent double tapping Event on two different slots //Prevent double tapping Event on two different slots
sendKeyPress(LwjglGlfwKeycode.GLFW_KEY_F); sendKeyPress(LwjglGlfwKeycode.GLFW_KEY_F);
} else {
mHandler.sendEmptyMessageDelayed(MSG_DROP_ITEM_BUTTON_CHECK, 350);
} }
mHandler.sendEmptyMessageDelayed(MSG_DROP_ITEM_BUTTON_CHECK, 350);
CallbackBridge.sendCursorPos(CallbackBridge.mouseX, CallbackBridge.mouseY); CallbackBridge.sendCursorPos(CallbackBridge.mouseX, CallbackBridge.mouseY);
mLastHotbarKey = hudKeyHandled; mLastHotbarKey = hudKeyHandled;
break; break;