diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/fight/Critical.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/fight/Critical.java index d0d52b6f..f939012a 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/fight/Critical.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/fight/Critical.java @@ -79,6 +79,7 @@ public class Critical extends Check { final MovingConfig ccM = MovingConfig.getConfig(player); if (MovingListener.shouldCheckSurvivalFly(player, dataM, ccM)){ final double deltaFallDistance = (cc.criticalFallDistance - player.getFallDistance()) / cc.criticalFallDistance; + // TODO: Cleanup: velocity is more like the gravity constant. final double deltaVelocity = (cc.criticalVelocity - Math.abs(player.getVelocity().getY())) / cc.criticalVelocity; double delta = deltaFallDistance > 0D ? deltaFallDistance : 0D + deltaVelocity > 0D ? deltaVelocity : 0D; diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/config/DefaultConfig.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/config/DefaultConfig.java index c0e85388..47a3adb0 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/config/DefaultConfig.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/config/DefaultConfig.java @@ -318,7 +318,7 @@ public class DefaultConfig extends ConfigFile { set(ConfPaths.FIGHT_ANGLE_ACTIONS, "cancel vl>100 log:angle:3:5:f cancel vl>250 log:angle:0:5:cif cancel"); set(ConfPaths.FIGHT_CRITICAL_CHECK, true); - set(ConfPaths.FIGHT_CRITICAL_FALLDISTANCE, 0.01D); + set(ConfPaths.FIGHT_CRITICAL_FALLDISTANCE, 0.06251D); set(ConfPaths.FIGHT_CRITICAL_VELOCITY, 0.1D); set(ConfPaths.FIGHT_CRITICAL_ACTIONS, "cancel vl>50 log:critical:0:5:cif cancel");