Skip to content

Commit

Permalink
Fix concurrency error in DimensionCache (#2565)
Browse files Browse the repository at this point in the history
  • Loading branch information
krossgg authored Dec 19, 2024
1 parent c701b1e commit 314e2db
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
import lombok.Getter;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;

public class DimensionCache {

@Getter
private final Map<GridPos, GridCache> cache = new HashMap<>();
private final ConcurrentMap<GridPos, GridCache> cache = new ConcurrentHashMap<>();

public boolean dirty;

Expand Down

0 comments on commit 314e2db

Please sign in to comment.