mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-26 10:28:05 +01:00
Call onVehicleMove with the actual vehicles location.
(From within onPlayerMove.)
This commit is contained in:
parent
e5911fdb8d
commit
ced4e0e039
@ -425,9 +425,12 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
|
||||
data.sfHoverTicks = -1;
|
||||
data.removeAllVelocity();
|
||||
data.sfLowJump = false;
|
||||
if (vehicle != null && !normalVehicles.contains(vehicle.getType())){
|
||||
if (vehicle != null){
|
||||
final Location vLoc = vehicle.getLocation();
|
||||
// (Auto detection of missing events, might fire one time too many per plugin run.)
|
||||
onVehicleMove(vehicle, event.getFrom(), event.getFrom(), true);
|
||||
if (!normalVehicles.contains(vehicle.getType())) {
|
||||
onVehicleMove(vehicle, vLoc, vLoc, true);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user