[SPIGOT-694] VehicleCreateEvent, event.getVehicle().getLocation() missing Created: 13/Mar/15  Updated: 13/Apr/15  Resolved: 13/Apr/15

Status: Closed
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: John Doe Assignee: Thinkofname
Resolution: Fixed Votes: 1
Labels: VehicleCreateEvent
Environment:

Linux, craftbukkit-1.8.3


Plugin: n/a

 Description   

In VehicleCreateEvent for all vehicle types, the event.getVehicle().getLocation() always reports as 0 0 0.

The vehicle still spawns in the correct location in game, but this gives the incorrect xyz to plugins for processing.

In the craftbukkit-1.8 it worked correctly, only in 1.8.3 has it started reporting as 0 0 0.



 Comments   
Comment by Faithcaio Baum [ 07/Apr/15 ]

Location is still 0 0 0 in version git-Bukkit-96c2c39
I tried normally placing boats ingame.

The position is set after calling the event.
EntityBoat:80 calls this(world) => EntityBoat:54 calls the event
EntityBoat:81 calls this.setPosition(...)

Comment by John Doe [ 13/Mar/15 ]

All vehicles, all methods.

Comment by md_5 [ 13/Mar/15 ]

Can you be more specific about your choice of vehicle and spawn method

Generated at Sat Dec 13 13:36:03 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.