aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/dulkirfabric/features/KeyShortCutImpl.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/features/KeyShortCutImpl.kt')
-rw-r--r--src/main/kotlin/com/dulkirfabric/features/KeyShortCutImpl.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/features/KeyShortCutImpl.kt b/src/main/kotlin/com/dulkirfabric/features/KeyShortCutImpl.kt
index 9d2d39f..fdca658 100644
--- a/src/main/kotlin/com/dulkirfabric/features/KeyShortCutImpl.kt
+++ b/src/main/kotlin/com/dulkirfabric/features/KeyShortCutImpl.kt
@@ -21,6 +21,8 @@ object KeyShortCutImpl {
prevCode = event.key
// This conditional allows for these shortcuts to work for commands or normal messages
+ // You have to do it this way because the messages are handled differently on the client
+ // side in modern versions of Minecraft.
if (it.command.startsWith("/"))
TextUtils.sendCommand(it.command.substring(1))
else