mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-29 00:08:50 +00:00
Fix unbound hotkeys triggering on keys with code 0 (#1171)
This commit is contained in:
1 parent
5a9e1e86b2
commit
7f5ad26efb
1 file changed
+4
@@ -78,6 +78,10 @@ public class KeyManager {
|
||||
}
|
||||
|
||||
final int keyCode = binding.getKeyCode();
|
||||
if (keyCode == Keyboard.KEY_NONE) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (currentEvent != NO_INPUT_EVENT) {
|
||||
return keyCode == currentEvent;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user