From d3e13e38e22b8eecd5198c59cf6a132cc9425b33 Mon Sep 17 00:00:00 2001 From: ronald Date: Sat, 29 Jul 2023 00:13:53 -0500 Subject: Lots of slayer backend and a smattering of random features (Lightning/fire culling, chat stacking improvements, aotv highlight stuff, etc) --- src/main/kotlin/com/dulkirfabric/features/KeyShortCutImpl.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/kotlin/com/dulkirfabric/features/KeyShortCutImpl.kt') 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 -- cgit