aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/events/BlockClickEvent.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events/BlockClickEvent.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/BlockClickEvent.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/BlockClickEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/BlockClickEvent.kt
index b256113a3..0ca9fb78c 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/BlockClickEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/BlockClickEvent.kt
@@ -6,5 +6,6 @@ import at.hannibal2.skyhanni.utils.LorenzVec
import net.minecraft.item.ItemStack
class BlockClickEvent(val clickType: ClickType, val position: LorenzVec, val itemInHand: ItemStack?) : LorenzEvent() {
+
val getBlockState by lazy { position.getBlockStateAt() }
-} \ No newline at end of file
+}