PaperMC / PaperMC/Paper

VehicleEntityCollisionEvent fired with VehicleBlockCollisionEvent

Open
#10,941 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

status: needs triage type: bug version: 1.20.6
Dominant language
Java
Stars
12.7k
Forks
3.5k
Avg merge
3d 13h
Merged PRs (30d)
11

Description

Expected behavior

The VehicleEntityCollisionEvent should only be triggered if the event parameter is a VehicleEntityCollisionEvent.

Observed/Actual behavior

The VehicleEntityCollisionEvent gets triggered with a VehicleBlockCollisionEvent as event parameter.

Steps/models to reproduce
    @EventHandler
    public void onVehicleCollision(VehicleEntityCollisionEvent event) {
        plugin.getLogger().info("Vehicle collision event triggered with " + event.getClass().getName());
    }
Plugin and Datapack List

/plugins

Server Plugins (1):
Bukkit Plugins:
- CollisionExample

/datapack list

There are 3 data pack(s) enabled: [vanilla (built-in)], [file/bukkit (world)], [paper (built-in)]
There are no more data packs available
Paper version

This server is running Paper version 1.20.6-147-ver/1.20.6@e41d44f (2024-06-17T19:24:35Z) (Implementing API version 1.20.6-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.20.6-146-122c9d3 (MC: 1.20.6)

Other

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the provided CollisionExample handler on Paper 1.20.6-147, then read the VehicleEntityCollisionEvent and VehicleBlockCollisionEvent definitions and their event-dispatch path. Done means the handler receives only VehicleEntityCollisionEvent instances and block collisions no longer trigger it.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.