Minebot incompatibility
michaelzangl opened this issue ยท 1 comments
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.
See #57 you should have commented there :P
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.