mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
Fixed issue with config reloading and false positives
This commit is contained in:
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
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user