forked from upstream/ProAntiTab
Fix ConcurrentModificationException ( Credits: xii69/ProAntiTab@8491e3eb30 )
This commit is contained in:
1 parent
b4c54101c9
commit
161eafeea7
2 files changed
+2
-2
No files matched your search
@@ -50,6 +50,6 @@ public class WaterfallAntiTabListener implements Listener {
|
||||
}
|
||||
|
||||
public static void updateCommands() {
|
||||
COMMANDS_CACHE_MAP.values().forEach(CommandsCache::reset);
|
||||
new ArrayList<>(COMMANDS_CACHE_MAP.values()).forEach(CommandsCache::reset);
|
||||
}
|
||||
}
|
||||
@@ -61,6 +61,6 @@ public class VelocityAntiTabListener {
|
||||
}
|
||||
|
||||
public static void updateCommands() {
|
||||
COMMANDS_CACHE_MAP.values().forEach(CommandsCache::reset);
|
||||
new ArrayList<>(COMMANDS_CACHE_MAP.values()).forEach(CommandsCache::reset);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user