mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
Add BoatFly check, fix WaterWalk false positive
This commit is contained in:
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) + ")");
|
||||
|
||||
Reference in new issue
Block a user