Fixed flight, speed, strafe false positives near boats

This commit is contained in:
Rammelkast committed 2021-03-02 18:40:30 +01:00
1 parent 0d50bc3b52
commit 45712a8f62
4 files changed
+4 -4

No files matched your search

@@ -53,7 +53,7 @@ public class StrafeCheck {
if (System.currentTimeMillis() - movementManager.lastTeleport <= checksConfig.getInteger(CheckType.STRAFE,
"accountForTeleports") || movementManager.elytraEffectTicks >= 20
|| movementManager.halfMovementHistoryCounter >= 20)
|| movementManager.halfMovementHistoryCounter >= 20 || Utilities.couldBeOnBoat(player, 0.5d, false))
return PASS;
Vector oldAcceleration = new Vector(movementManager.lastDistanceX, 0, movementManager.lastDistanceZ);