mirror of
https://github.com/funkemunky/KauriV3.git
synced 2026-06-11 02:20:37 +00:00
Added horizontal velocity check and improving prediction
This commit is contained in:
@@ -86,6 +86,19 @@ public class APlayer {
|
||||
load();
|
||||
}
|
||||
|
||||
private final Map<Class<? extends Check>, Check> checkCache = new HashMap<>();
|
||||
|
||||
public synchronized Check findCheck(Class<? extends Check> checkClass) {
|
||||
return checkCache.computeIfAbsent(checkClass, key -> {
|
||||
for (Check check : checks) {
|
||||
if (check.getClass().equals(key)) {
|
||||
return check;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
});
|
||||
}
|
||||
|
||||
private void load() {
|
||||
synchronized (checks) {
|
||||
for (CheckStatic check : Anticheat.INSTANCE.getCheckManager().getCheckClasses()) {
|
||||
|
||||
Reference in New Issue
Block a user