Skip to content

Commit 5cfa443

Browse files
committed
Fixed crash with groundFinder
1 parent 1d8834e commit 5cfa443

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/ferreusveritas/dynamictrees/api/worldgen/GroundFinder.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import java.util.HashMap;
1515
import java.util.List;
1616
import java.util.Map;
17+
import java.util.concurrent.ConcurrentHashMap;
1718

1819
/**
1920
* Implementations will find a suitable area to generate a tree on the ground.
@@ -29,7 +30,7 @@ public interface GroundFinder {
2930
* If this is not set manually, the ground finder returned will be {@link #SUBTERRANEAN} if {@link DimensionType#hasCeiling()}
3031
* returns {@code true} or {@link #SURFACE} if {@code false}.
3132
*/
32-
Map<ResourceKey<Level>, GroundFinder> GROUND_FINDERS = new HashMap<>();
33+
Map<ResourceKey<Level>, GroundFinder> GROUND_FINDERS = new ConcurrentHashMap<>();
3334

3435
/**
3536
* Finds the {@link BlockPos} of the first ground block for the y-column of the start {@link BlockPos} given.

0 commit comments

Comments
 (0)