Bukkit/CraftBukkit — pull request #599 by wilsonsd (2011-12-16 06:24:13+00:00)
Title: Fix for BUKKIT-223.

Moved the creation of VehicleEnterEvents from EntityBoat.b and
EntityMinecart.b to Entity.setPassengerOf. This prevents the creation
of VehicleEnterEvents when a player exits a cart or boat.

This pull requests replaces #574, which introduced issues with the MC Client getting out of sync when a VehicleExitEvent is cancelled. This pull request does not attempt to implement cancellable VehicleExitEvents. See https://github.com/Bukkit/CraftBukkit/pull/574