Skip to content

Commit

Permalink
Fix ConcurrentModificationError when unloading a chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
bundabrg committed Jul 20, 2020
1 parent 31547d4 commit 60fd88c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicInteger;

@Getter
Expand All @@ -107,7 +108,7 @@ public class GeyserSession implements CommandSender {
private InventoryCache inventoryCache;
private ScoreboardCache scoreboardCache;
private WindowCache windowCache;
private Map<Position, PlayerEntity> skullCache = new HashMap<>();
private Map<Position, PlayerEntity> skullCache = new ConcurrentHashMap<>();
@Setter
private TeleportCache teleportCache;

Expand Down

0 comments on commit 60fd88c

Please sign in to comment.