Jump to content

Recommended Posts

Posted

I have keybinding for key L. 

flush = new KeyBinding("flush", Keyboard.KEY_L, "misc");
...
ClientRegistry.registerKeyBinding(flush);

 

Ingame it's working fine, but when I open inventory or chest the bind is not working.

 

I'm checking `InputEvent.KeyInputEvent` event with `flush.isKeyDown()` and `flush.isPressed()`. When I open inventory, the event is not fired.

I tried `PlayerTickEvent` with isKeyDown and isPressed, but it seems not to update the keybind while the inventory is open.

 

I tried reverse inventory tweaks (key R sort the inv, even when it's open), but I achieved no progress.

 

What should I use to check, if the key was pressed when inventory is open?

Posted

1.12 is no longer supported on this forum.

Please update to a modern version of Minecraft to receive support.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.