False positive fixes

- Added new Speed check
- Fixing false positives with Fly (C) under blocks
- Fixed false positives with stepping on Fly (C) and Fly (D)
- Fixed liquid false positives with Fly (C) and (D)
- Fixed horizontal friction-based false positives, like switching between ice and regular blocks (used wrong friction)
- Fixed NoFall (B) false positive when in liquid and under block pressing space bar
This commit is contained in:
Dawson
2022-08-27 14:27:56 -04:00
parent 5e071e3690
commit 25606997fa
18 changed files with 201 additions and 23 deletions
@@ -3,7 +3,6 @@ package dev.brighten.ac.handler;
import dev.brighten.ac.Anticheat;
import dev.brighten.ac.data.APlayer;
import dev.brighten.ac.data.obj.NormalAction;
import dev.brighten.ac.handler.thread.ThreadHandler;
import dev.brighten.ac.packet.ProtocolVersion;
import dev.brighten.ac.packet.wrapper.PacketType;
import dev.brighten.ac.packet.wrapper.in.*;
@@ -178,6 +177,7 @@ public class PacketHandler {
if(player.getPlayerVersion().isBelow(ProtocolVersion.V1_14)) {
player.runKeepaliveAction(k -> player.getBukkitPlayer().setSprinting(false), 1);
}
player.runKeepaliveAction(ka -> player.getInfo().lastRespawn.reset());
break;
}
case SERVER_POSITION: {