mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-31 20:41:29 +01:00
Use a ConcurrentHashMap to store viewable chunks
This commit is contained in:
parent
f3a67f8f50
commit
3d2d3868a3
@ -105,7 +105,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
private DimensionType dimensionType;
|
||||
private GameMode gameMode;
|
||||
// Chunks that the player can view
|
||||
protected final Set<Chunk> viewableChunks = new CopyOnWriteArraySet<>();
|
||||
protected final Set<Chunk> viewableChunks = ConcurrentHashMap.newKeySet();
|
||||
|
||||
private final AtomicInteger teleportId = new AtomicInteger();
|
||||
private int receivedTeleportId;
|
||||
|
Loading…
Reference in New Issue
Block a user