Fix None hotkeys for java8 (#726)

This commit is contained in:
slprime authored and GitHub committed 2025-09-21 19:44:20 +02:00
1 parent bb89384493
commit 23b7c69e2f
1 file changed
+1 -1
@@ -31,7 +31,7 @@ public class KeyManager {
public static void tickKeyStates() {
for (Entry<String, KeyState> entry : keyStates.entrySet()) {
final int keyCode = NEIKeyboardUtils.unhash(NEIClientConfig.getKeyBinding(entry.getKey()));
final boolean down = keyCode < Keyboard.KEYBOARD_SIZE ? Keyboard.isKeyDown(keyCode) : null;
final boolean down = keyCode > 0 && keyCode < Keyboard.KEYBOARD_SIZE && Keyboard.isKeyDown(keyCode);
final KeyState state = entry.getValue();
if (down) {