aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/events/ItemClickEvent.kt
diff options
context:
space:
mode:
authorThunderblade73 <85900443+Thunderblade73@users.noreply.github.com>2024-02-10 21:25:20 +0100
committerGitHub <noreply@github.com>2024-02-10 21:25:20 +0100
commit3ced2632ac23d968601f83374b8b3ceee0fc5e36 (patch)
tree009a29156bcf4a3c8b6e604d9a33360aa1a13eb5 /src/main/java/at/hannibal2/skyhanni/events/ItemClickEvent.kt
parentffbb693db7921a2d145c545833a98248e4623bf4 (diff)
downloadskyhanni-3ced2632ac23d968601f83374b8b3ceee0fc5e36.tar.gz
skyhanni-3ced2632ac23d968601f83374b8b3ceee0fc5e36.tar.bz2
skyhanni-3ced2632ac23d968601f83374b8b3ceee0fc5e36.zip
Blocks the mining ability when on private island. #860
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events/ItemClickEvent.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/ItemClickEvent.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/ItemClickEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/ItemClickEvent.kt
index 5bf89558a..a34cb43f1 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/ItemClickEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/ItemClickEvent.kt
@@ -2,5 +2,7 @@ package at.hannibal2.skyhanni.events
import at.hannibal2.skyhanni.data.ClickType
import net.minecraft.item.ItemStack
+import net.minecraftforge.fml.common.eventhandler.Cancelable
-class ItemClickEvent(val itemInHand: ItemStack?, val clickType: ClickType) : LorenzEvent()
+@Cancelable
+class ItemClickEvent(itemInHand: ItemStack?, clickType: ClickType) : WorldClickEvent(itemInHand, clickType)