[SPIGOT-2043] VehicleMoveEvent is not called for boats with entities riding them Created: 24/Mar/16 Updated: 20/May/16 Resolved: 20/Apr/16 |
|
Status: | Closed |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | zombachu | Assignee: | Thinkofname |
Resolution: | Fixed | Votes: | 0 |
Labels: | 1.9, boats, bug, entity |
Description |
Boats with entities riding them (tested with players and villagers) do not fire VehicleMoveEvent. |
Comments |
Comment by VanDerProtofsky [ 20/Apr/16 ] |
Please disregard; boats do not track velocity when ridden, so my testing code was making me think the event didn't fire. Should have used breakpoints; sorry! |
Comment by md_5 [ 25/Mar/16 ] |
Basically moving boats are actually treated as players moving them so PlayerMoveEvent is fired instead. |
Comment by zombachu [ 24/Mar/16 ] |
@md_5 What's version are you running and what's your code? I've simplified my testing to just this and I'm having the same behavior as before. It'll spam chat if the boat is empty but as soon as I get into it then it'll stop. |
Comment by md_5 [ 24/Mar/16 ] |
Players and Villagers both work in my testing: [22:09:20 INFO]: [TestPlugin] org.bukkit.event.vehicle.VehicleMoveEvent@669bddf1[from=Location{world=CraftWorld {name=world},x=-84.70251933757899,y=62.5672604453247,z=184.60688387425893,pitch=0.0,yaw=159.00003},to=Location{world=CraftWorld{name=world},x=-84.70251933757899,y=62.5240623082892,z=184.60688387425893,pitch=0.0,yaw=159.00003},vehicle=CraftBoat,name=<null>,async=false] |