aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/mining
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/mining
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/mining')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/mining/TunnelsMaps.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/mining/TunnelsMaps.kt b/src/main/java/at/hannibal2/skyhanni/features/mining/TunnelsMaps.kt
index 0012ed8b0..2d7487ddc 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/mining/TunnelsMaps.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/mining/TunnelsMaps.kt
@@ -1,6 +1,7 @@
package at.hannibal2.skyhanni.features.mining
import at.hannibal2.skyhanni.SkyHanniMod
+import at.hannibal2.skyhanni.api.event.HandleEvent
import at.hannibal2.skyhanni.data.ClickType
import at.hannibal2.skyhanni.data.IslandType
import at.hannibal2.skyhanni.data.model.Graph
@@ -484,7 +485,7 @@ object TunnelsMaps {
nextSpotKey(event)
}
- @SubscribeEvent
+ @HandleEvent
fun onItemClick(event: ItemClickEvent) {
if (!isEnabled() || !config.leftClickPigeon) return
if (event.clickType != ClickType.LEFT_CLICK) return