You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did try to recompile before, using isKeyDown, but I got an error saying it is deprecated (isPressed too).
Anyways adding this to the beginning of FireUseBlockEvents fixed it for me: if(mc.gameSettings.keyBindUseItem.getKeyCode()>Keyboard.KEYBOARD_SIZE){return;}
P.S. @Zyin055 have a look at the net.minecraftforge.client.event.GuiScreenEvent.MouseInputEvent and GuiScreenEvent.KeyboardInputEvent events for catching clicks and keystrokes when GUIs are open too.
See michaelzangl/minebot#108
You can fix this by replacing the key access to use the isPressed/isKeyDown methods of the key binding if you need to know if that key is pressed.
The text was updated successfully, but these errors were encountered: