-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
None
-
Affects Version/s: None
-
Environment:
Spigot 1.9
Cancelling the VehicleExitEvent no longer prevents the player from dismounting/exiting a vehicle/mount.
- is duplicated by
-
SPIGOT-2466 VehicleExitEvent seems broken
-
- Resolved
-
-
SPIGOT-4163 Inconsistent Behaviour Cancelling EntitydismountEvent
-
- Resolved
-
You can fix this by using reflection to re-set the rider's reference to the vehicle that gets lost during the cancelled event. For 1.13 this field is Entity#ax, to 1.12 it's Entity#au. For older versions you can look that up yourself.
See these for more information:
https://hub.spigotmc.org/jira/browse/SPIGOT-4113
https://hub.spigotmc.org/jira/browse/SPIGOT-4163