mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
Compare commits
2
Commits
1.9.4-PRE2
...
1.9.4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0c91ec7ba4 | ||
|
|
abff433510 |
No files matched your search
@@ -3,7 +3,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.rammelkast.anticheatreloaded</groupId>
|
<groupId>com.rammelkast.anticheatreloaded</groupId>
|
||||||
<artifactId>AntiCheatReloaded</artifactId>
|
<artifactId>AntiCheatReloaded</artifactId>
|
||||||
<version>1.9.4-PRE</version>
|
<version>1.9.4</version>
|
||||||
<name>AntiCheatReloaded</name>
|
<name>AntiCheatReloaded</name>
|
||||||
<url>https://www.spigotmc.org/resources/anticheatreloaded.23799/</url>
|
<url>https://www.spigotmc.org/resources/anticheatreloaded.23799/</url>
|
||||||
<properties>
|
<properties>
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ public class SpeedCheck {
|
|||||||
if (VersionUtil.isSlowFalling(player))
|
if (VersionUtil.isSlowFalling(player))
|
||||||
predict *= 1.25D;
|
predict *= 1.25D;
|
||||||
// Prevent NoSlow
|
// Prevent NoSlow
|
||||||
if (movementManager.blockingTicks > 2 && movementManager.airTicks > 2)
|
if (movementManager.blockingTicks > 3 && movementManager.airTicks > 2)
|
||||||
predict *= 0.8D;
|
predict *= 0.8D;
|
||||||
if (movementManager.blockingTicks > 10 && movementManager.airTicks > 2)
|
if (movementManager.blockingTicks > 10 && movementManager.airTicks > 2)
|
||||||
predict *= 0.5D;
|
predict *= 0.5D;
|
||||||
@@ -168,10 +168,11 @@ public class SpeedCheck {
|
|||||||
// This happens naturally
|
// This happens naturally
|
||||||
if (movementManager.airTicksBeforeGrounded == movementManager.groundTicks) {
|
if (movementManager.airTicksBeforeGrounded == movementManager.groundTicks) {
|
||||||
double minimumDistXZ = checksConfig.getDouble(CheckType.SPEED, "jumpBehaviour", "minimumDistXZ"); // Default
|
double minimumDistXZ = checksConfig.getDouble(CheckType.SPEED, "jumpBehaviour", "minimumDistXZ"); // Default
|
||||||
// 0.42
|
|
||||||
if (distanceXZ >= minimumDistXZ) {
|
if (distanceXZ >= minimumDistXZ || movementManager.lastDistanceXZ >= minimumDistXZ) {
|
||||||
return new CheckResult(CheckResult.Result.FAILED, "JumpBehaviour",
|
return new CheckResult(CheckResult.Result.FAILED, "JumpBehaviour",
|
||||||
"had unexpected jumping behaviour");
|
"had unexpected jumping behaviour (dXZ=" + Utilities.roundDouble(distanceXZ, 4) + ", lXZ="
|
||||||
|
+ Utilities.roundDouble(movementManager.lastDistanceXZ, 4) + ")");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user