mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 19:15:32 +01:00
synchronize hashmap lookups
This commit is contained in:
parent
edb0debd16
commit
280880d163
@ -40,7 +40,9 @@ public class LongHashtable<V> 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) {
|
||||
|
Loading…
Reference in New Issue
Block a user