mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Fix #123, fix elytrafly false positive, fix flight false positive when falling, fix speed false positive with slabs, fixed strafe false positive with slabs, fixed TPS formatting issue, improved default config
This commit is contained in:
1 parent
646e906ada
commit
bd1db83a98
8 files changed
+46
-72
No files matched your search
@@ -104,7 +104,7 @@ public class FlightCheck {
|
||||
return new CheckResult(CheckResult.Result.FAILED, "AirFlight",
|
||||
"tried to fly on the Y-axis (mY=" + movementManager.motionY + ", max=" + maxMotionY + ")");
|
||||
|
||||
if (Math.abs(movementManager.motionY - movementManager.lastMotionY) < 5E-3
|
||||
if (Math.abs(movementManager.motionY - movementManager.lastMotionY) < (movementManager.airTicks >= 115 ? 1E-3 : 5E-3)
|
||||
&& !Utilities.couldBeOnBoat(player)
|
||||
&& (System.currentTimeMillis() - movementManager.lastTeleport >= checksConfig
|
||||
.getInteger(CheckType.FLIGHT, "airFlight", "accountForTeleports"))
|
||||
|
||||
Reference in new issue
Block a user