mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 22:16:03 +00:00
Setting the walkSpeed no longer affects hack level
This commit is contained in:
1 parent
c301eadc5e
commit
75b2ba4aa1
1 file changed
+3
@@ -306,6 +306,9 @@ public class Backend {
|
|||||||
reason = "while sprinting ";
|
reason = "while sprinting ";
|
||||||
max = magic.XZ_SPEED_MAX_SPRINT;
|
max = magic.XZ_SPEED_MAX_SPRINT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
max += player.getWalkSpeed() - 0.2f;
|
||||||
|
|
||||||
if (x > max || z > max) {
|
if (x > max || z > max) {
|
||||||
int num = this.increment(player, speedViolation, magic.SPEED_MAX);
|
int num = this.increment(player, speedViolation, magic.SPEED_MAX);
|
||||||
if(num >= magic.SPEED_MAX) {
|
if(num >= magic.SPEED_MAX) {
|
||||||
|
|||||||
Reference in new issue
Block a user