fix preview map not displaying when first opening the settings gui
This commit is contained in:
parent
c5e09150f2
commit
359dddf5a2
@ -1,10 +1,9 @@
|
|||||||
package com.terraforged.core.util.concurrent.cache;
|
package com.terraforged.core.util.concurrent.cache;
|
||||||
|
|
||||||
import com.terraforged.core.util.concurrent.ThreadPool;
|
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.concurrent.Executor;
|
import java.util.concurrent.Executor;
|
||||||
|
import java.util.concurrent.ForkJoinPool;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.function.Function;
|
import java.util.function.Function;
|
||||||
import java.util.function.Supplier;
|
import java.util.function.Supplier;
|
||||||
@ -21,7 +20,7 @@ public class Cache<K, V extends ExpiringEntry> implements Runnable {
|
|||||||
public Cache(long expireTime, long interval, TimeUnit unit) {
|
public Cache(long expireTime, long interval, TimeUnit unit) {
|
||||||
this.expireMS = unit.toMillis(expireTime);
|
this.expireMS = unit.toMillis(expireTime);
|
||||||
this.intervalMS = unit.toMillis(interval);
|
this.intervalMS = unit.toMillis(interval);
|
||||||
this.executor = ThreadPool.getCurrent();
|
this.executor = ForkJoinPool.commonPool();
|
||||||
}
|
}
|
||||||
|
|
||||||
public V computeIfAbsent(K k, Supplier<V> supplier) {
|
public V computeIfAbsent(K k, Supplier<V> supplier) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
mod_version=0.0.5
|
mod_version=0.0.6
|
||||||
mc_version=1.15.2
|
mc_version=1.15.2
|
||||||
forge_version=31.1.1
|
forge_version=31.1.1
|
||||||
mcp_channel=snapshot
|
mcp_channel=snapshot
|
||||||
|
Loading…
Reference in New Issue
Block a user