summaryrefslogtreecommitdiffstats
path: root/nms-patches/ExpiringMap.patch
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-12-13 11:00:00 +1100
committermd_5 <git@md-5.net>2018-12-13 11:00:00 +1100
commitc64fe5080c996e8ea29b3e113043dd0aa962aaee (patch)
treebdd0883450532288f4d4e1f4687bad7aca234019 /nms-patches/ExpiringMap.patch
parenta3c2ec03148f9f38d4d27d045b1afee2fc6ff173 (diff)
downloadcraftbukkit-c64fe5080c996e8ea29b3e113043dd0aa962aaee.tar
craftbukkit-c64fe5080c996e8ea29b3e113043dd0aa962aaee.tar.gz
craftbukkit-c64fe5080c996e8ea29b3e113043dd0aa962aaee.tar.lz
craftbukkit-c64fe5080c996e8ea29b3e113043dd0aa962aaee.tar.xz
craftbukkit-c64fe5080c996e8ea29b3e113043dd0aa962aaee.zip
Mappings Update
Diffstat (limited to 'nms-patches/ExpiringMap.patch')
-rw-r--r--nms-patches/ExpiringMap.patch6
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);
+ }
+