From d4e261646c2343b27413cc861c7e0fc453c741b3 Mon Sep 17 00:00:00 2001 From: sychic <47618543+Sychic@users.noreply.github.com> Date: Sun, 8 Sep 2024 19:04:08 -0400 Subject: [PATCH] fix: allow block interact event to be with a nullable item [no ci] --- events/src/main/kotlin/gg/skytils/event/impl/play/world.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/events/src/main/kotlin/gg/skytils/event/impl/play/world.kt b/events/src/main/kotlin/gg/skytils/event/impl/play/world.kt index 9c623c3dd..f540c4b79 100644 --- a/events/src/main/kotlin/gg/skytils/event/impl/play/world.kt +++ b/events/src/main/kotlin/gg/skytils/event/impl/play/world.kt @@ -38,7 +38,7 @@ class WorldUnloadEvent(val world: World) : Event() * Represents right-clicking on a block * [gg.skytils.event.mixins.MixinMinecraft.onBlockInteract] */ -class BlockInteractEvent(val item: ItemStack, val pos: BlockPos) : CancellableEvent() +class BlockInteractEvent(val item: ItemStack?, val pos: BlockPos) : CancellableEvent() class EntityInteractEvent( val entity: Entity,