[SPIGOT-5463] [1.15] VehicleBlockCollisionEvent not triggered with boats Created: 18/Dec/19 Updated: 15/Dec/21 |
|
Status: | Open |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | arboriginal | Assignee: | Unassigned |
Resolution: | Unresolved | Votes: | 3 |
Labels: | 1.15, boat, collision, event, spigot | ||
Environment: |
|
Attachments: |
![]() |
Version: | CraftBukkit version git-Spigot-047b6f8-61d4b09 (MC: 1.15) (Implementing API version 1.15-R0.1-SNAPSHOT) |
Plugin: | none |
Guidelines Read: | Yes |
Description |
VehicleBlockCollisionEvent event is not triggered when in a boat:
On the contrary (but maybe the attendee result), VehicleEntityCollisionEvent triggers constantly even when NOT moving (I suppose every ticks) between the player and the boat. In a Minecart, it also trigger often but only when moving. Attached code is a simple class which print in console the name of the event triggered for both VehicleBlockCollisionEvent & VehicleEntityCollisionEvent. See this discussion: https://www.spigotmc.org/threads/how-to-check-collision-for-boat.408472 |
Comments |
Comment by catangent [ 15/Dec/21 ] |
still doesnt work in paper 1.18 |
Comment by TheCreeperCow [ 13/Jan/20 ] |
Ok i reviewed the code this event is very broken im putting in a recommendation to deprecate this event im sorry if you wanted to use this event doesn't seem fixable to me |
Comment by TheCreeperCow [ 13/Jan/20 ] |
Ok this issue is quite serious the event only triggers if there are no passengers in the boat and when it triggers it reports back the wrong block it reports the block under the vehicle (boat as well as minecarts) instead of the colliding block |
Comment by TheCreeperCow [ 13/Jan/20 ] |
Seems to be related indeed |
Comment by Eccentric Devotion [ 13/Jan/20 ] |
Could be related? https://hub.spigotmc.org/jira/browse/SPIGOT-5510 |
Comment by TheCreeperCow [ 18/Dec/19 ] |
Either this is by design or a oversight ill have a look at the code later and see which one of the two it is and if i can fix it for you |