Fix CME in CraftPersistentDataTypeRegistry

This commit is contained in:
Gero 2021-10-02 20:08:30 +02:00
parent 2bf4b6e53d
commit e80bb1adca

View File

@ -121,7 +121,7 @@ public final class CraftPersistentDataTypeRegistry {
}
}
private final Map<Class, TagAdapter> adapters = new HashMap<>();
private final Map<Class, TagAdapter> adapters = new java.util.concurrent.ConcurrentHashMap<>(); // Paper - Replace HashMap with ConcurrentHashMap to avoid CME
/**
* Creates a suitable adapter instance for the primitive class type.