Closed ghost closed 7 years ago
Oh sorry.
Well, I set up a module item that colors different words on keypresses, but from the keypress to being rendered takes time, and it will sometimes skip a couple "frames" because i can press the key several times before it gets rendered again.
That usually should not be the case. The module items get rendered every frame. Maybe try using Keyboard.isKeyDown() in your render method instead.
I'm currently listening to onWorldTick
and just checking if the keybinding is pressed.
How do I use Keyboard.isKeyDown()
instead?
Call Keyboard.isKeyDown(Keyboard.KEY_J)
in the render method of your module item to check every frame if the J key is currently pressed.
What exactly do you mean?