File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
common/src/main/kotlin/com/lambda/module Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import com.lambda.event.listener.Listener
1313import com.lambda.event.listener.SafeListener
1414import com.lambda.event.listener.SafeListener.Companion.listener
1515import com.lambda.event.listener.UnsafeListener
16+ import com.lambda.gui.impl.clickgui.LambdaClickGui
1617import com.lambda.module.tag.ModuleTag
1718import com.lambda.util.KeyCode
1819import com.lambda.util.Nameable
@@ -106,9 +107,11 @@ abstract class Module(
106107
107108 init {
108109 listener<KeyPressEvent >(alwaysListen = true ) { event ->
109- if (mc.currentScreen == null && event.key == keybind.key) {
110- toggle()
111- }
110+ val screen = mc.currentScreen
111+ if (event.key == keybind.key
112+ && (screen == null
113+ || screen is LambdaClickGui )
114+ ) toggle()
112115 }
113116 }
114117
You can’t perform that action at this time.
0 commit comments