We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c315812 commit 8bc3fbaCopy full SHA for 8bc3fba
common/src/main/kotlin/com/lambda/module/Module.kt
@@ -112,14 +112,11 @@ abstract class Module(
112
113
init {
114
listener<KeyPressEvent>(alwaysListen = true) { event ->
115
+ if (mc.options.commandKey.isPressed) return@listener
116
if (keybind == KeyCode.UNBOUND) return@listener
117
+ if (event.translated != keybind) return@listener
118
- val screen = mc.currentScreen
- if (event.translated == keybind
119
- && !mc.options.commandKey.isPressed
120
- && (screen == null
121
- || screen !is LambdaGui)
122
- ) toggle()
+ if (mc.currentScreen == null || this@Module is ClickGui) toggle()
123
}
124
125
onEnable {
0 commit comments