mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-07 03:02:11 +01:00
Attempt 2 to fix Vehicles.
This commit is contained in:
parent
32eece216e
commit
a98dca7e81
@ -490,10 +490,9 @@ public class MovingListener implements Listener {
|
||||
|
||||
// Emergency fix:
|
||||
final MovingData data = MovingData.getData(player);
|
||||
data.noFallFallDistance = 0;
|
||||
data.noFallVL = 0;
|
||||
data.noFallOnGroundClient = data.noFallOnGroundServer = data.noFallWasOnGroundClient = data.noFallWasOnGroundServer = true;
|
||||
|
||||
data.clearFlyData();
|
||||
player.setFallDistance(0.0f);
|
||||
|
||||
if (morePacketsVehicle.isEnabled(player))
|
||||
// If the player is handled by the more packets vehicle check, execute it.
|
||||
newTo = morePacketsVehicle.check(player, event.getFrom(), event.getTo());
|
||||
|
Loading…
Reference in New Issue
Block a user