mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Re-add logging-only animation method
This commit is contained in:
1 parent
3a746ef45e
commit
b1498140ba
1 file changed
+7
-3
@@ -842,9 +842,7 @@ public class Backend {
|
||||
}
|
||||
|
||||
public CheckResult checkFastAnimation(final Player player) {
|
||||
animated.put(player.getName(), System.currentTimeMillis());
|
||||
increment(player, blockPunches, magic.BLOCK_PUNCH_MIN);
|
||||
itemInHand.put(player.getName(), player.getItemInHand().getType());
|
||||
logAnimation(player);
|
||||
|
||||
String name = player.getName();
|
||||
int clicks = animations.containsKey(name) ? animations.get(name) + 1 : 1;
|
||||
@@ -861,6 +859,12 @@ public class Backend {
|
||||
return PASS;
|
||||
}
|
||||
|
||||
public void logAnimation(final Player player) {
|
||||
animated.put(player.getName(), System.currentTimeMillis());
|
||||
increment(player, blockPunches, magic.BLOCK_PUNCH_MIN);
|
||||
itemInHand.put(player.getName(), player.getItemInHand().getType());
|
||||
}
|
||||
|
||||
public void clearChatLevel(Player player) {
|
||||
chatLevel.remove(player.getName());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user