mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
Remove fast animation check.
Due to the networking at play here, there's no sane way to assume that animation events/packets are going to come at a certain time apart. Through testing, there have been legitimate animations come 0ms apart, which makes this check impossible, at least in its current state.
This commit is contained in:
1 parent
c6818c11f7
commit
d49e44b0ba
6 files changed
+1
-42
No files matched your search
@@ -246,14 +246,7 @@ public class PlayerListener extends EventListener {
|
||||
|
||||
@EventHandler
|
||||
public void onPlayerAnimation(PlayerAnimationEvent event) {
|
||||
Player player = event.getPlayer();
|
||||
if (getCheckManager().willCheck(player, CheckType.FAST_ANIMATION)) {
|
||||
CheckResult result = getBackend().checkFastAnimation(player);
|
||||
if (result.failed()) {
|
||||
event.setCancelled(!silentMode());
|
||||
log(result.getMessage(), player, CheckType.FAST_ANIMATION);
|
||||
}
|
||||
}
|
||||
getBackend().logAnimation(event.getPlayer());
|
||||
|
||||
AntiCheat.getManager().addEvent(event.getEventName(), event.getHandlers().getRegisteredListeners());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user