Skip to content

VehicleBlockCollisionEvent not working #7413

@AoElite

Description

@AoElite

Expected behavior

VehicleBlockCollisionEvent should fire when colliding with a block in a vehicle such as a boat.

Observed/Actual behavior

VehicleBlockCollisionEvent does not fire when colliding with a block in a vehicle.

Steps/models to reproduce

 //yes the class is a listener and registered
 @EventHandler
    public void onVehicleCollision(VehicleBlockCollisionEvent event) {
        Block block = event.getBlock();
        block.setType(Material.AIR);
    }

Get in a boat and run into a block. It should turn into air but it doesn't.

Plugin and Datapack List

[11:00:47 INFO]: There are 2 data packs enabled: [vanilla (built-in)], [file/bukkit (world)]
[11:00:47 INFO]: There are no more data packs available

[11:01:49 INFO]: Plugins (1): TestPlugin

TestPlugin only contains the code above.

Paper version

[10:59:51 INFO]: This server is running Paper version git-Paper-408 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: cc43ba7 on ver/1.17.1)
You are running the latest version
Previous version: git-Paper-358 (MC: 1.17.1)

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething doesn't work as it was intended to.

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions