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

Commit ef1beb1

Browse files
committed
Fix last commit by checking world not ingameGui
1 parent fc4dc05 commit ef1beb1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- Made MotionUpdateEvent cancellable
99
- Made UpdateEvent cancellable
1010
### Fixed
11-
- CommandHandler opening chat when the ingameGui is null
11+
- CommandHandler opening chat when not in a world
1212
- Fixed left click events not firing
1313
- Fixed CDK ClientAPI dependency not deobfuscating srg names
1414
- 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 || mc.ingameGUI == null)
94+
if (!openChat || prefix == null || mc.world == null)
9595
return;
9696

9797
// Ensure the prefix is a single character

0 commit comments

Comments
 (0)