From 48d67e6da503cb14ac3f987f5519d14a345ae6b8 Mon Sep 17 00:00:00 2001 From: dags- Date: Sat, 21 Mar 2020 15:17:45 +0000 Subject: [PATCH] cache rivers for a bit longer --- .../main/java/com/terraforged/core/world/rivermap/RiverMap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TerraForgedCore/src/main/java/com/terraforged/core/world/rivermap/RiverMap.java b/TerraForgedCore/src/main/java/com/terraforged/core/world/rivermap/RiverMap.java index 45bb80a..822a6a9 100644 --- a/TerraForgedCore/src/main/java/com/terraforged/core/world/rivermap/RiverMap.java +++ b/TerraForgedCore/src/main/java/com/terraforged/core/world/rivermap/RiverMap.java @@ -81,7 +81,7 @@ public class RiverMap { this.heightmap = heightmap; this.context = context; 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) {