mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 14:38:46 +00:00
Fix #167
This commit is contained in:
1 parent
6aaaf883e5
commit
38e6a5a99c
1 file changed
+10
@@ -175,6 +175,16 @@ public final class FlightCheck {
|
|||||||
"tried to climb air (mY=" + movementManager.motionY + ", at=" + movementManager.airTicks + ")");
|
"tried to climb air (mY=" + movementManager.motionY + ", at=" + movementManager.airTicks + ")");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (checksConfig.isSubcheckEnabled(CheckType.FLIGHT, "airClimb") && movementManager.lastMotionY > 0.0
|
||||||
|
&& movementManager.motionY > 0.0 && movementManager.airTicks > 3
|
||||||
|
&& movementManager.motionY > movementManager.lastMotionY
|
||||||
|
&& user.getVelocityTracker().getVertical() <= 0.0
|
||||||
|
&& (System.currentTimeMillis() - movementManager.lastTeleport >= checksConfig
|
||||||
|
.getInteger(CheckType.FLIGHT, "airClimb", "accountForTeleports"))) {
|
||||||
|
return new CheckResult(CheckResult.Result.FAILED, "AirClimb",
|
||||||
|
"tried to climb air (mY=" + movementManager.motionY + ", at=" + movementManager.airTicks + ")");
|
||||||
|
}
|
||||||
|
|
||||||
if (checksConfig.isSubcheckEnabled(CheckType.FLIGHT, "airClimb") && movementManager.airTicks >= minAirTicks
|
if (checksConfig.isSubcheckEnabled(CheckType.FLIGHT, "airClimb") && movementManager.airTicks >= minAirTicks
|
||||||
&& !velocityTracker.isVelocitized() && movementManager.slimeInfluenceTicks <= 0
|
&& !velocityTracker.isVelocitized() && movementManager.slimeInfluenceTicks <= 0
|
||||||
&& movementManager.elytraEffectTicks <= 25
|
&& movementManager.elytraEffectTicks <= 25
|
||||||
|
|||||||
Reference in new issue
Block a user