Add BoatFly check, fix WaterWalk false positive

This commit is contained in:
Rammelkast committed 2020-10-17 13:46:54 +02:00
1 parent ab2fcc5521
commit 619c8efae1
4 files changed
+55 -2

No files matched your search

@@ -72,7 +72,8 @@ public class WaterWalkCheck {
&& Utilities.isSurroundedByWater(player)
&& Math.abs(movementManager.lastMotionY - movementManager.motionY) > minAbsMotionY
&& movementManager.distanceXZ > checksConfig.getDouble(CheckType.WATER_WALK, "lunge", "minimumDistXZ")
&& movementManager.lastMotionY > -0.25)
&& movementManager.lastMotionY > -0.25
&& !Utilities.couldBeOnBoat(player, 0.3, false))
return new CheckResult(Result.FAILED, "Lunge", "tried to lunge in water (xz="
+ Utilities.roundDouble(movementManager.distanceXZ, 5) + ", absMotionY="
+ Utilities.roundDouble(Math.abs(movementManager.lastMotionY - movementManager.motionY), 5) + ")");