diff options
author | ronald <inglettronald@gmail.com> | 2023-07-29 00:13:53 -0500 |
---|---|---|
committer | ronald <inglettronald@gmail.com> | 2023-07-29 00:13:53 -0500 |
commit | d3e13e38e22b8eecd5198c59cf6a132cc9425b33 (patch) | |
tree | e70a8fdc86d00cf22a281fcde09b856f09b45a11 /src/main/kotlin/com/dulkirfabric/features/KeyShortCutImpl.kt | |
parent | 71b8238eff91de0243e641c2eeadacd61b8f0f88 (diff) | |
download | DulkirMod-Fabric-d3e13e38e22b8eecd5198c59cf6a132cc9425b33.tar.gz DulkirMod-Fabric-d3e13e38e22b8eecd5198c59cf6a132cc9425b33.tar.bz2 DulkirMod-Fabric-d3e13e38e22b8eecd5198c59cf6a132cc9425b33.zip |
Lots of slayer backend and a smattering of random features (Lightning/fire culling, chat stacking improvements, aotv highlight stuff, etc)
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/features/KeyShortCutImpl.kt')
-rw-r--r-- | src/main/kotlin/com/dulkirfabric/features/KeyShortCutImpl.kt | 2 |
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 f0ca052..97ea6e4 100644 --- a/src/main/kotlin/com/dulkirfabric/features/KeyShortCutImpl.kt +++ b/src/main/kotlin/com/dulkirfabric/features/KeyShortCutImpl.kt @@ -4,6 +4,7 @@ import com.dulkirfabric.commands.DynamicKeyCommand import com.dulkirfabric.config.DulkirConfig import com.dulkirfabric.events.WorldKeyPressEvent import com.dulkirfabric.util.TextUtils +import com.dulkirfabric.util.Utils import meteordevelopment.orbit.EventHandler object KeyShortCutImpl { @@ -12,6 +13,7 @@ object KeyShortCutImpl { @EventHandler fun onKeyPress(event: WorldKeyPressEvent) { + if (DulkirConfig.configOptions.macrosSkyBlockOnly && !Utils.isInSkyblock()) return DulkirConfig.configOptions.macrosList.forEach { if (it.keyBinding.code == event.key) { // Spam Prevention |