]> git.lizzy.rs Git - BoundingBoxOutlineReloaded.git/commitdiff
Allow F3 keys to work again
authorIrtimaled <irtimaled@gmail.com>
Fri, 15 Mar 2019 05:00:46 +0000 (22:00 -0700)
committerIrtimaled <irtimaled@gmail.com>
Fri, 15 Mar 2019 05:50:41 +0000 (22:50 -0700)
The custom key binder stopped F3+B and F3+O from working

src/main/java/com/irtimaled/bbor/client/keyboard/KeyListener.java

index 9a83c16943d40eea0fe916f3efd44dce463aa827..a680d7c74736a87c4fbd00e8e0455463a115bcb9 100644 (file)
@@ -25,7 +25,7 @@ public class KeyListener {
     }
 
     private static void onKeyEvent(long windowHandle, int keyCode, int scanCode, int action, int modifiers) {
-        if (windowHandle == mainWindowHandle && minecraft.currentScreen == null && keyCode != -1) {
+        if (windowHandle == mainWindowHandle && minecraft.currentScreen == null && keyCode != -1 && !InputMappings.isKeyDown(292)) {
             InputMappings.Input input = InputMappings.getInputByCode(keyCode, scanCode);
             for (Key key : keys) {
                 if (key.getInput() == input) {