From eaf01fa32ce84125c8bda141eb1653444af5bebf Mon Sep 17 00:00:00 2001 From: Jikoo Date: Sun, 19 Nov 2017 14:46:52 -0500 Subject: [PATCH] Don't cache simultaneously added players forever --- common/src/main/java/com/lishid/openinv/util/Cache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/lishid/openinv/util/Cache.java b/common/src/main/java/com/lishid/openinv/util/Cache.java index 7c9ad0e..d0f40df 100644 --- a/common/src/main/java/com/lishid/openinv/util/Cache.java +++ b/common/src/main/java/com/lishid/openinv/util/Cache.java @@ -41,7 +41,7 @@ public class Cache { new Comparator() { @Override public int compare(final K k1, final K k2) { - return 0; + return k1 == k2 || k1 != null && k1.equals(k2) ? 0 : 1; } });