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:
gravitylow committed 2013-10-27 14:54:29 -04:00
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());
}