Skip to content

Commit

Permalink
Don't trigger keybinds if we're trying to use an F3 debug command
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Burk authored Apr 7, 2022
1 parent faaf48a commit fcd4b50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/net/wurstclient/keybinds/KeybindProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ public void onKeyPress(KeyPressEvent event)
if(event.getAction() != GLFW.GLFW_PRESS)
return;

if (InputUtil.isKeyPressed(WurstClient.MC.getWindow().getHandle(), GLFW.GLFW_KEY_F3)) return;

Screen screen = WurstClient.MC.currentScreen;
if(screen != null && !(screen instanceof ClickGuiScreen))
return;
Expand Down

0 comments on commit fcd4b50

Please sign in to comment.