summaryrefslogtreecommitdiffstats
path: root/src/test/java/org
diff options
context:
space:
mode:
authorSam Wilson <sam.wilson@gmail.com>2011-12-16 12:31:00 -0800
committerAndrew Ardill <andrew.ardill@gmail.com>2011-12-19 18:22:38 +1100
commita7744ac751842e1adbeb1ee125bf8be093d4e0bc (patch)
treefe73a17b76a980032700cfce0542b81e9a4dca5c /src/test/java/org
parent2c72f9f5af3a2ed7dd2982595f73d1935270efc0 (diff)
downloadcraftbukkit-a7744ac751842e1adbeb1ee125bf8be093d4e0bc.tar
craftbukkit-a7744ac751842e1adbeb1ee125bf8be093d4e0bc.tar.gz
craftbukkit-a7744ac751842e1adbeb1ee125bf8be093d4e0bc.tar.lz
craftbukkit-a7744ac751842e1adbeb1ee125bf8be093d4e0bc.tar.xz
craftbukkit-a7744ac751842e1adbeb1ee125bf8be093d4e0bc.zip
Prevent VehicleEnterEvent being sent when player exits vehicle.
Fix for BUKKIT-223. Issue BUKKIT-223: When a player exits a minecart or boat, both a VehicleExitEvent and a VehicleEnterEvent are fired. Only the VehicleExitEvent should fire. Reason for bug: This occurs because the VehicleEnterEvent is fired in EntityBoat.b and EntityMinecart.b *any* time a player right-clicks on a vehicle, whether the right-click is to enter the vehicle or exit it. Fix: By moving the creation of VehicleEnterEvents from EntityBoat.b and EntityMinecart.b to Entity.setPassengerOf, we can create either a VehicleEnterEvent or a VehicleExitEvent, depending on whether the player is entering or exiting a vehicle.
Diffstat (limited to 'src/test/java/org')
0 files changed, 0 insertions, 0 deletions