mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Fix OBJ Loader caches not being thread-safe. (#9204)
This commit is contained in:
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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user