Skip to content

Commit

Permalink
Fixed crash with groundFinder
Browse files Browse the repository at this point in the history
  • Loading branch information
supermassimo committed Dec 9, 2024
1 parent 1d8834e commit 5cfa443
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

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

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

0 comments on commit 5cfa443

Please sign in to comment.