Fix ConcurrentModificationException ( Credits: xii69/ProAntiTab@8491e3eb30 )

This commit is contained in:
RayzsYT committed 2024-10-19 18:33:55 +02:00
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);
}
}