From eea733bdab195e3a68d4f0d8264abddd5ab2ae59 Mon Sep 17 00:00:00 2001 From: inglettronald Date: Mon, 12 Jun 2023 20:50:52 -0500 Subject: added some better documentation --- src/main/kotlin/com/dulkirfabric/features/KeyShortCutImpl.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main') 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 -- cgit