From 419ebe7553bb6642dc7b2e752a397ae0136db670 Mon Sep 17 00:00:00 2001 From: themode Date: Fri, 26 Feb 2021 12:48:53 +0100 Subject: [PATCH] Use soft references for cached packet instead of weak --- .../java/net/minestom/server/utils/cache/TemporaryCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minestom/server/utils/cache/TemporaryCache.java b/src/main/java/net/minestom/server/utils/cache/TemporaryCache.java index f15755153..ee09624c7 100644 --- a/src/main/java/net/minestom/server/utils/cache/TemporaryCache.java +++ b/src/main/java/net/minestom/server/utils/cache/TemporaryCache.java @@ -28,7 +28,7 @@ public class TemporaryCache { this.keepTime = keepTime; this.cache = CacheBuilder.newBuilder() .expireAfterWrite(keepTime, TimeUnit.MILLISECONDS) - .weakValues() + .softValues() .build(); }