mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-27 02:48:04 +01:00
SF: Start with hbuf at 0 (reverts setting to 1/2 of max).
This commit is contained in:
parent
4c76fc8471
commit
e17b14e17d
@ -118,9 +118,6 @@ public class MovingData extends ACheckData {
|
|||||||
public final List<Velocity> hVelActive = new LinkedList<Velocity>();
|
public final List<Velocity> hVelActive = new LinkedList<Velocity>();
|
||||||
/** Queued velocity entries (horizontal distance). */
|
/** Queued velocity entries (horizontal distance). */
|
||||||
public final List<Velocity> hVelQueued = new LinkedList<Velocity>();
|
public final List<Velocity> hVelQueued = new LinkedList<Velocity>();
|
||||||
// public int horizontalVelocityCounter;
|
|
||||||
// public double horizontalFreedom;
|
|
||||||
// public int horizontalVelocityUsed = 0;
|
|
||||||
|
|
||||||
// Coordinates.
|
// Coordinates.
|
||||||
/** Last from coordinates. */
|
/** Last from coordinates. */
|
||||||
@ -201,9 +198,6 @@ public class MovingData extends ACheckData {
|
|||||||
// HOT FIX
|
// HOT FIX
|
||||||
/** Inconsistency-flag. Set on moving inside of vehicles, reset on exiting properly. Workaround for VehicleLeaveEvent missing. */
|
/** Inconsistency-flag. Set on moving inside of vehicles, reset on exiting properly. Workaround for VehicleLeaveEvent missing. */
|
||||||
public boolean wasInVehicle = false;
|
public boolean wasInVehicle = false;
|
||||||
|
|
||||||
|
|
||||||
// public final Stats stats = new Stats(); // Test.
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clear the data of the fly checks (not more-packets).
|
* Clear the data of the fly checks (not more-packets).
|
||||||
@ -546,10 +540,11 @@ public class MovingData extends ACheckData {
|
|||||||
verticalVelocityUsed ++;
|
verticalVelocityUsed ++;
|
||||||
verticalVelocityCounter--;
|
verticalVelocityCounter--;
|
||||||
}
|
}
|
||||||
else if (verticalVelocityCounter > 0D) {
|
else if (verticalVelocityCounter > 0) {
|
||||||
verticalVelocityUsed ++;
|
verticalVelocityUsed ++;
|
||||||
verticalFreedom += verticalVelocity;
|
verticalFreedom += verticalVelocity;
|
||||||
verticalVelocity = Math.max(0.0, verticalVelocity -0.09);
|
verticalVelocity = Math.max(0.0, verticalVelocity -0.09);
|
||||||
|
// TODO: Consider using up counter ? / better use velocity entries / even better use x,y,z entries right away .
|
||||||
} else if (verticalFreedom > 0.001D){
|
} else if (verticalFreedom > 0.001D){
|
||||||
if (verticalVelocityUsed == 1 && verticalVelocity > 1.0){
|
if (verticalVelocityUsed == 1 && verticalVelocity > 1.0){
|
||||||
// Workarounds.
|
// Workarounds.
|
||||||
|
Loading…
Reference in New Issue
Block a user