diff options
Diffstat (limited to 'nms-patches/ExpiringMap.patch')
-rw-r--r-- | nms-patches/ExpiringMap.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nms-patches/ExpiringMap.patch b/nms-patches/ExpiringMap.patch index 874be687..16adacb2 100644 --- a/nms-patches/ExpiringMap.patch +++ b/nms-patches/ExpiringMap.patch @@ -12,7 +12,7 @@ public class ExpiringMap<T> extends Long2ObjectOpenHashMap<T> { @@ -21,11 +23,17 @@ - long j = SystemUtils.b(); + long j = SystemUtils.getMonotonicMillis(); this.b.put(i, j); - ObjectIterator objectiterator = this.b.long2LongEntrySet().iterator(); @@ -21,7 +21,7 @@ + } + + public void cleanup() { -+ long j = SystemUtils.b(); ++ long j = SystemUtils.getMonotonicMillis(); + ObjectIterator<Long2LongMap.Entry> objectiterator = this.b.long2LongEntrySet().iterator(); // CraftBukkit - decompile error while (objectiterator.hasNext()) { @@ -48,7 +48,7 @@ + // CraftBukkit start + @Override + public T computeIfAbsent(long l, LongFunction<? extends T> lf) { -+ this.b.put(l, SystemUtils.b()); ++ this.b.put(l, SystemUtils.getMonotonicMillis()); + return super.computeIfAbsent(l, lf); + } + |