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; } });