mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-26 10:28:05 +01:00
Process vehicle-exit in case of invalid or dead vehicles.
This commit is contained in:
parent
048cada0c7
commit
0ac342fb92
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user