From c51867e02768d60f172893d49272687e43e6b35b Mon Sep 17 00:00:00 2001 From: Wide-Cat Date: Mon, 1 Jul 2024 20:16:28 +0100 Subject: [PATCH] Ensure toggleOnBindRelease doesn't enable modules when releasing the bind closes #4710, closes #4289, closes #4174, closes #2782 --- .../meteordevelopment/meteorclient/systems/modules/Modules.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/meteordevelopment/meteorclient/systems/modules/Modules.java b/src/main/java/meteordevelopment/meteorclient/systems/modules/Modules.java index c5583011a5..c1edf461a6 100644 --- a/src/main/java/meteordevelopment/meteorclient/systems/modules/Modules.java +++ b/src/main/java/meteordevelopment/meteorclient/systems/modules/Modules.java @@ -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(); }