aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/minion
diff options
context:
space:
mode:
authorThatGravyBoat <thatgravyboat@gmail.com>2024-10-11 15:06:51 -0230
committerGitHub <noreply@github.com>2024-10-11 19:36:51 +0200
commit60f92d58aec0ec976cf1b4933174c1143a20551c (patch)
tree4175f30a3e42deef2387d81e2c785fae678bdf01 /src/main/java/at/hannibal2/skyhanni/features/minion
parent925bb0964d502bdecf74ad14002bdf7c57bb44d6 (diff)
downloadskyhanni-60f92d58aec0ec976cf1b4933174c1143a20551c.tar.gz
skyhanni-60f92d58aec0ec976cf1b4933174c1143a20551c.tar.bz2
skyhanni-60f92d58aec0ec976cf1b4933174c1143a20551c.zip
Backend: Add event inheritance (#2047)
Co-authored-by: Cal <cwolfson58@gmail.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/minion')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt
index c7d7bb504..a9dc3dce3 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt
@@ -1,6 +1,7 @@
package at.hannibal2.skyhanni.features.minion
import at.hannibal2.skyhanni.SkyHanniMod
+import at.hannibal2.skyhanni.api.event.HandleEvent
import at.hannibal2.skyhanni.config.ConfigUpdaterMigrator
import at.hannibal2.skyhanni.config.storage.ProfileSpecificStorage
import at.hannibal2.skyhanni.data.ClickType
@@ -121,7 +122,7 @@ object MinionFeatures {
}
}
- @SubscribeEvent
+ @HandleEvent(onlyOnSkyblock = true)
fun onEntityClick(event: EntityClickEvent) {
if (!enableWithHub()) return
if (event.clickType != ClickType.RIGHT_CLICK) return
@@ -129,7 +130,7 @@ object MinionFeatures {
lastClickedEntity = event.clickedEntity?.getLorenzVec() ?: return
}
- @SubscribeEvent
+ @HandleEvent(onlyOnSkyblock = true)
fun onBlockClick(event: BlockClickEvent) {
if (!enableWithHub()) return
if (event.clickType != ClickType.RIGHT_CLICK) return