Fix handler infinitely throwing out items

This commit is contained in:
SerpentSpirale 2021-12-02 10:27:04 +01:00
parent edd8859f2d
commit da13f2ed72

View File

@ -98,8 +98,10 @@ public class MinecraftGLView extends TextureView {
return; return;
} }
if(msg.what == MSG_DROP_ITEM_BUTTON_CHECK) { if(msg.what == MSG_DROP_ITEM_BUTTON_CHECK) {
sendKeyPress(LWJGLGLFWKeycode.GLFW_KEY_Q); if(CallbackBridge.isGrabbing()){
theHandler.sendEmptyMessageDelayed(MSG_DROP_ITEM_BUTTON_CHECK, 600); sendKeyPress(LWJGLGLFWKeycode.GLFW_KEY_Q);
theHandler.sendEmptyMessageDelayed(MSG_DROP_ITEM_BUTTON_CHECK, 600);
}
return; return;
} }