Fix speed false positive with Elytra (following #202)

This commit is contained in:
Rammelkast committed 2021-12-16 16:17:50 +01:00
1 parent e71707a84c
commit 5b33eb5b9d
3 files changed
+5 -5

No files matched your search

@@ -247,7 +247,8 @@ public final class SpeedCheck {
if (checksConfig.isSubcheckEnabled(CheckType.SPEED, "jumpBehaviour") && movementManager.touchedGroundThisTick
&& !boxedIn && movementManager.slimeInfluenceTicks <= 10 && !Utilities.isNearHalfblock(movingTowards)
&& !Utilities.isNearHalfblock(movingTowards.clone().subtract(0, 0.51, 0))
&& !Utilities.couldBeOnBoat(player, 0.8d, false)) {
&& !Utilities.couldBeOnBoat(player, 0.8, false)
&& movementManager.elytraEffectTicks <= 0) {
// This happens naturally
if (movementManager.airTicksBeforeGrounded == movementManager.groundTicks) {
final double minimumDistXZ = checksConfig.getDouble(CheckType.SPEED, "jumpBehaviour", "minimumDistXZ"); // Default