Process vehicle-exit in case of invalid or dead vehicles.

This commit is contained in:
asofold 2013-08-29 21:33:51 +02:00
parent 048cada0c7
commit 0ac342fb92

View File

@ -1082,8 +1082,12 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
if (player == null){
return;
}
if (vehicle.isDead() || !vehicle.isValid()) {
onPlayerVehicleLeave(player);
return;
}
if (!from.getWorld().equals(to.getWorld())) return;
Location newTo = null;
final MovingData data = MovingData.getData(player);
data.sfNoLowJump = true;