cache rivers for a bit longer

This commit is contained in:
dags- 2020-03-21 15:17:45 +00:00
parent ea82cb4901
commit 48d67e6da5

View File

@ -81,7 +81,7 @@ public class RiverMap {
this.heightmap = heightmap; this.heightmap = heightmap;
this.context = context; this.context = context;
this.riverMapConfig = new RiverMapConfig(context.settings.rivers.riverFrequency, primary, secondary, tertiary, lakes); this.riverMapConfig = new RiverMapConfig(context.settings.rivers.riverFrequency, primary, secondary, tertiary, lakes);
this.cache = new Cache<>(120, 60, TimeUnit.SECONDS); this.cache = new Cache<>(3, 1, TimeUnit.MINUTES);
} }
public RiverRegionList getRivers(Region region) { public RiverRegionList getRivers(Region region) {