Fix OBJ Loader caches not being thread-safe. (#9204)

This commit is contained in:
gigaherz authored and GitHub committed 2022-12-11 20:36:17 +01:00
1 parent 069a94f205
commit 8bf96d8738
1 file changed
+2 -2
@@ -31,8 +31,8 @@ public class ObjLoader implements IGeometryLoader<ObjModel>, ResourceManagerRelo
{
public static ObjLoader INSTANCE = new ObjLoader();
private final Map<ObjModel.ModelSettings, ObjModel> modelCache = Maps.newHashMap();
private final Map<ResourceLocation, ObjMaterialLibrary> materialCache = Maps.newHashMap();
private final Map<ObjModel.ModelSettings, ObjModel> modelCache = Maps.newConcurrentMap();
private final Map<ResourceLocation, ObjMaterialLibrary> materialCache = Maps.newConcurrentMap();
private ResourceManager manager = Minecraft.getInstance().getResourceManager();