aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/test
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/test
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/test')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/WorldEdit.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/WorldEdit.kt b/src/main/java/at/hannibal2/skyhanni/test/WorldEdit.kt
index 9b3cec0a0..0c5f66626 100644
--- a/src/main/java/at/hannibal2/skyhanni/test/WorldEdit.kt
+++ b/src/main/java/at/hannibal2/skyhanni/test/WorldEdit.kt
@@ -1,6 +1,7 @@
package at.hannibal2.skyhanni.test
import at.hannibal2.skyhanni.SkyHanniMod
+import at.hannibal2.skyhanni.api.event.HandleEvent
import at.hannibal2.skyhanni.data.ClickType
import at.hannibal2.skyhanni.events.BlockClickEvent
import at.hannibal2.skyhanni.events.LorenzRenderWorldEvent
@@ -52,7 +53,7 @@ object WorldEdit {
return text
}
- @SubscribeEvent
+ @HandleEvent
fun onBlockClick(event: BlockClickEvent) {
if (!isEnabled()) return
if (event.itemInHand?.getItemId() != "WOOD_AXE") return