Fixed issue with config reloading and false positives

This commit is contained in:
Rammelkast committed 2020-07-22 11:16:01 +02:00
1 parent 6966582e4c
commit f4ca2ea8bf
5 files changed
+21 -10

No files matched your search

@@ -47,9 +47,13 @@ public class CheckManager {
public CheckManager(AntiCheatManager manager) {
this.manager = manager;
this.config = manager.getConfiguration();
this.loadCheckIgnoreList(this.config);
}
public void loadCheckIgnoreList(Configuration configuration) {
checkIgnoreList.clear();
for (CheckType type : CheckType.values()) {
if (!config.getChecks().isEnabled(type)) {
if (!configuration.getChecks().isEnabled(type)) {
checkIgnoreList.add(type);
break;
}
@@ -60,7 +64,7 @@ public class CheckManager {
+ checkIgnoreList.size() + " check(s) have been disabled");
}
}
/**
* Turn a check on
*