Skip to content

Commit

Permalink
Ensure toggleOnBindRelease doesn't enable modules when releasing the …
Browse files Browse the repository at this point in the history
  • Loading branch information
Wide-Cat committed Jul 1, 2024
1 parent 946a4ba commit c51867e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ private void onAction(boolean isKey, int value, int modifiers, boolean isPress)
if (mc.currentScreen != null || Input.isKeyPressed(GLFW.GLFW_KEY_F3)) return;

for (Module module : moduleInstances.values()) {
if (module.keybind.matches(isKey, value, modifiers) && (isPress || module.toggleOnBindRelease)) {
if (module.keybind.matches(isKey, value, modifiers) && (isPress || (module.toggleOnBindRelease && module.isActive()))) {
module.toggle();
module.sendToggledMsg();
}
Expand Down

0 comments on commit c51867e

Please sign in to comment.