From 359dddf5a20bb7ed038873ff196733c929695ae4 Mon Sep 17 00:00:00 2001 From: dags- Date: Wed, 18 Mar 2020 21:25:09 +0000 Subject: [PATCH] fix preview map not displaying when first opening the settings gui --- .../com/terraforged/core/util/concurrent/cache/Cache.java | 5 ++--- gradle.properties | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/TerraForgedCore/src/main/java/com/terraforged/core/util/concurrent/cache/Cache.java b/TerraForgedCore/src/main/java/com/terraforged/core/util/concurrent/cache/Cache.java index c2aa989..466bebf 100644 --- a/TerraForgedCore/src/main/java/com/terraforged/core/util/concurrent/cache/Cache.java +++ b/TerraForgedCore/src/main/java/com/terraforged/core/util/concurrent/cache/Cache.java @@ -1,10 +1,9 @@ package com.terraforged.core.util.concurrent.cache; -import com.terraforged.core.util.concurrent.ThreadPool; - import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Executor; +import java.util.concurrent.ForkJoinPool; import java.util.concurrent.TimeUnit; import java.util.function.Function; import java.util.function.Supplier; @@ -21,7 +20,7 @@ public class Cache implements Runnable { public Cache(long expireTime, long interval, TimeUnit unit) { this.expireMS = unit.toMillis(expireTime); this.intervalMS = unit.toMillis(interval); - this.executor = ThreadPool.getCurrent(); + this.executor = ForkJoinPool.commonPool(); } public V computeIfAbsent(K k, Supplier supplier) { diff --git a/gradle.properties b/gradle.properties index eb85b78..6c3a00c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -mod_version=0.0.5 +mod_version=0.0.6 mc_version=1.15.2 forge_version=31.1.1 mcp_channel=snapshot