mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-27 02:48:04 +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){
|
||||
return;
|
||||
}
|
||||
if (vehicle.isDead() || !vehicle.isValid()) {
|
||||
onPlayerVehicleLeave(player);
|
||||
return;
|
||||
}
|
||||
if (!from.getWorld().equals(to.getWorld())) return;
|
||||
|
||||
Location newTo = null;
|
||||
|
Loading…
Reference in New Issue
Block a user