Fix #96, introduce Strafe check and fix flight, speed false positives

This commit is contained in:
Rammelkast committed 2020-08-01 22:35:51 +02:00
1 parent 3bc49141fc
commit c74fc92da9
9 files changed
+100 -10

No files matched your search

@@ -57,7 +57,7 @@ public class SpeedCheck {
boolean boxedIn = movementManager.topSolid && movementManager.bottomSolid;
// AirSpeed
if (checksConfig.isSubcheckEnabled(CheckType.SPEED, "airSpeed") && movementManager.airTicks > 1 && movementManager.elytraEffectTicks <= 0) {
if (checksConfig.isSubcheckEnabled(CheckType.SPEED, "airSpeed") && movementManager.airTicks > 1 && movementManager.elytraEffectTicks <= 0 && !Utilities.isNearClimbable(player)) {
double multiplier = 0.985D;
double predict = 0.36 * Math.pow(multiplier, movementManager.airTicks + 1);
double limit = checksConfig.getDouble(CheckType.SPEED, "airSpeed", "baseLimit"); // Default 0.03125