Fix ConcurrentModificationException related to ping task on Folia

Affects issues:
- Fixed #3844
This commit is contained in:
Aurora Lahtela 2024-11-30 12:57:55 +02:00
parent 83485a4747
commit 55f7557149

View File

@ -87,7 +87,7 @@ public class BukkitPingCounter extends TaskSystem.Task implements Listener {
this.dbSystem = dbSystem;
this.serverInfo = serverInfo;
startRecording = new ConcurrentHashMap<>();
playerHistory = new HashMap<>();
playerHistory = new ConcurrentHashMap<>();
Optional<PingMethod> loaded = loadPingMethod();
if (loaded.isPresent()) {