mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-07 11:10:05 +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:
|
// Emergency fix:
|
||||||
final MovingData data = MovingData.getData(player);
|
final MovingData data = MovingData.getData(player);
|
||||||
data.noFallFallDistance = 0;
|
data.clearFlyData();
|
||||||
data.noFallVL = 0;
|
player.setFallDistance(0.0f);
|
||||||
data.noFallOnGroundClient = data.noFallOnGroundServer = data.noFallWasOnGroundClient = data.noFallWasOnGroundServer = true;
|
|
||||||
|
|
||||||
if (morePacketsVehicle.isEnabled(player))
|
if (morePacketsVehicle.isEnabled(player))
|
||||||
// If the player is handled by the more packets vehicle check, execute it.
|
// If the player is handled by the more packets vehicle check, execute it.
|
||||||
newTo = morePacketsVehicle.check(player, event.getFrom(), event.getTo());
|
newTo = morePacketsVehicle.check(player, event.getFrom(), event.getTo());
|
||||||
|
Loading…
Reference in New Issue
Block a user