Skip to content
This repository was archived by the owner on Feb 19, 2019. It is now read-only.

Commit fc4dc05

Browse files
committed
Don't open chat if ingameGui is null
1 parent db2af3a commit fc4dc05

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- Made MotionUpdateEvent cancellable
99
- Made UpdateEvent cancellable
1010
### Fixed
11+
- CommandHandler opening chat when the ingameGui is null
1112
- Fixed left click events not firing
1213
- Fixed CDK ClientAPI dependency not deobfuscating srg names
1314
- Fixed CDK version having quotes by default

src/main/java/clientapi/command/handler/CommandHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public CommandHandler(Manager<Command> commandManager) {
9191
@EventHandler
9292
private final Listener<KeyEvent> keyEventListener = new Listener<>(event -> {
9393
// Check if opening chat with the prefix is supported
94-
if (!openChat || prefix == null)
94+
if (!openChat || prefix == null || mc.ingameGUI == null)
9595
return;
9696

9797
// Ensure the prefix is a single character

0 commit comments

Comments
 (0)