mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-28 11:28:11 +01:00
Process vehicle-exit in case of invalid or dead vehicles.
This commit is contained in:
parent
048cada0c7
commit
0ac342fb92
@ -1082,6 +1082,10 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
|
|||||||
if (player == null){
|
if (player == null){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (vehicle.isDead() || !vehicle.isValid()) {
|
||||||
|
onPlayerVehicleLeave(player);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!from.getWorld().equals(to.getWorld())) return;
|
if (!from.getWorld().equals(to.getWorld())) return;
|
||||||
|
|
||||||
Location newTo = null;
|
Location newTo = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user