TogAr2 / MinestomPvP

Combat library for Minestom
Apache License 2.0
80 stars 31 forks source link

ProjectileCollideWithBlockEvent not called when projectiles implemented wih minestompvp #27

Closed Nuckerr closed 5 months ago

Nuckerr commented 1 year ago

I have a listener for ProjectileCollideWithBlockEvent, however it is not called when I throw a snowball (even though I have it implemented with this code:)

node.addChild(
            PvPConfig
                .emptyBuilder()
                .projectile(ProjectileConfig.emptyBuilder(false).snowball(true).build())
                .build().createNode()
        )

I need to use this event as opposed to the ProjectileBlockHitEvent, because that class does not contain things I need like collissionPosition and block.