mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-29 11:57:59 +01:00
SF: Clear buffer on resetFlyData, carefully reduce with onSetBack.
This commit is contained in:
parent
24c78d4cd6
commit
2a364b8cb3
@ -143,22 +143,22 @@ public class MovingData extends ACheckData {
|
||||
public Location setBack;
|
||||
public Location teleported;
|
||||
|
||||
/**
|
||||
* Clear the data of the fly checks (not more-packets).
|
||||
*/
|
||||
public void clearFlyData() {
|
||||
bunnyhopDelay = 0;
|
||||
sfJumpPhase = 0;
|
||||
jumpAmplifier = 0;
|
||||
setBack = null;
|
||||
sfLastYDist = Double.MAX_VALUE;
|
||||
fromX = toX = Double.MAX_VALUE;
|
||||
clearAccounting();
|
||||
clearNoFallData();
|
||||
// TODO: Check if to clear buffers etc
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear the data of the fly checks (not more-packets).
|
||||
*/
|
||||
public void clearFlyData() {
|
||||
bunnyhopDelay = 0;
|
||||
sfJumpPhase = 0;
|
||||
jumpAmplifier = 0;
|
||||
setBack = null;
|
||||
sfLastYDist = Double.MAX_VALUE;
|
||||
fromX = toX = Double.MAX_VALUE;
|
||||
clearAccounting();
|
||||
clearNoFallData();
|
||||
sfHorizontalBuffer = 0;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Mildly reset the flying data without losing any important information.
|
||||
*
|
||||
@ -176,6 +176,7 @@ public class MovingData extends ACheckData {
|
||||
// Keep jump amplifier
|
||||
// Keep bunny-hop delay (?)
|
||||
// keep jump phase.
|
||||
sfHorizontalBuffer = Math.min(0, sfHorizontalBuffer);
|
||||
}
|
||||
|
||||
public void clearAccounting() {
|
||||
|
Loading…
Reference in New Issue
Block a user