Skip to content

Commit 782815b

Browse files
committed
Fix typing keybinds in chat screen
1 parent e6e5638 commit 782815b

File tree

1 file changed

+2
-0
lines changed
  • common/src/main/kotlin/com/lambda/module

1 file changed

+2
-0
lines changed

common/src/main/kotlin/com/lambda/module/Module.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import com.lambda.sound.LambdaSound
2222
import com.lambda.sound.SoundManager.playSoundRandomly
2323
import com.lambda.util.KeyCode
2424
import com.lambda.util.Nameable
25+
import net.minecraft.client.gui.screen.ChatScreen
2526

2627
/**
2728
* A [Module] is a feature or tool for the utility mod.
@@ -115,6 +116,7 @@ abstract class Module(
115116
if (mc.options.commandKey.isPressed) return@listener
116117
if (keybind == KeyCode.UNBOUND) return@listener
117118
if (event.translated != keybind) return@listener
119+
if (mc.currentScreen is ChatScreen) return@listener
118120

119121
if (mc.currentScreen == null || this@Module is ClickGui) toggle()
120122
}

0 commit comments

Comments
 (0)