Skip to content

Commit

Permalink
fix: allow block interact event to be with a nullable item
Browse files Browse the repository at this point in the history
[no ci]
  • Loading branch information
Sychic committed Sep 10, 2024
1 parent d4ee876 commit d4e2616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion events/src/main/kotlin/gg/skytils/event/impl/play/world.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d4e2616

Please sign in to comment.