Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minebot incompatibility #59

Open
michaelzangl opened this issue May 24, 2016 · 1 comment
Open

Minebot incompatibility #59

michaelzangl opened this issue May 24, 2016 · 1 comment

Comments

@michaelzangl
Copy link

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.

@beppe9000
Copy link

beppe9000 commented May 24, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants