- more grass in forests
- a few thread safety changes
This commit is contained in:
parent
ee61b6a923
commit
ff54a17ba2
@ -1 +1 @@
|
||||
Subproject commit cc04ae3d90b708b1b0ead02ae1e26e6d7d47c42a
|
||||
Subproject commit c609c9e6044e3e9bb863a3f0601a4abba1be6180
|
@ -6,6 +6,7 @@ import com.terraforged.core.world.heightmap.RegionExtent;
|
||||
import me.dags.noise.util.NoiseUtil;
|
||||
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
public class RegionCache implements RegionExtent {
|
||||
@ -19,7 +20,7 @@ public class RegionCache implements RegionExtent {
|
||||
public RegionCache(boolean queueNeighbours, RegionGenerator renderer) {
|
||||
this.renderer = renderer;
|
||||
this.queuing = queueNeighbours;
|
||||
this.cache = new Cache<>(180, 60, TimeUnit.SECONDS);
|
||||
this.cache = new Cache<>(180, 60, TimeUnit.SECONDS, () -> new ConcurrentHashMap<>());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 5720feaa0d799b7a230d21a7c1abe7b7a0ae3f91
|
||||
Subproject commit a406906308488a6d15e4cc17898c8a7d97173197
|
Loading…
Reference in New Issue
Block a user