aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-06-12 20:50:52 -0500
committeringlettronald <inglettronald@gmail.com>2023-06-12 20:50:52 -0500
commiteea733bdab195e3a68d4f0d8264abddd5ab2ae59 (patch)
treebe93082a1dafab67c0ccce995bf58f4e33741410 /src/main
parent26a2f712dca71a3e5c9144ccb4df2c07eae4369b (diff)
downloadDulkirMod-Fabric-eea733bdab195e3a68d4f0d8264abddd5ab2ae59.tar.gz
DulkirMod-Fabric-eea733bdab195e3a68d4f0d8264abddd5ab2ae59.tar.bz2
DulkirMod-Fabric-eea733bdab195e3a68d4f0d8264abddd5ab2ae59.zip
added some better documentation
Diffstat (limited to 'src/main')
-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