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,6 +1082,10 @@ 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;