diff --git a/src/main/java/net/minecraft/server/LongHashtable.java b/src/main/java/net/minecraft/server/LongHashtable.java index 3ac02a3797..d3b1474c18 100644 --- a/src/main/java/net/minecraft/server/LongHashtable.java +++ b/src/main/java/net/minecraft/server/LongHashtable.java @@ -40,7 +40,9 @@ public class LongHashtable extends LongHash } public V get(long key) { - return containsKey(key) ? (V) cache.value : null; + synchronized(this) { + return containsKey(key) ? (V) cache.value : null; + } } public boolean containsKey(long key) {