mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Merge pull request #2091 from shadekiller666/ItemModelLoadingFix
Fixed a bug with item model loading
This commit is contained in:
commit
cf568ae85f
1 file changed
+12
-5
@@ -217,13 +217,20 @@ public class ModelLoader extends ModelBakery
|
||||
throw new IllegalStateException("circular model dependencies involving model " + location);
|
||||
}
|
||||
loadingModels.add(location);
|
||||
IModel model = ModelLoaderRegistry.getModel(location);
|
||||
for(ResourceLocation dep : model.getDependencies())
|
||||
try
|
||||
{
|
||||
getModel(dep);
|
||||
IModel model = ModelLoaderRegistry.getModel(location);
|
||||
for (ResourceLocation dep : model.getDependencies())
|
||||
{
|
||||
getModel(dep);
|
||||
|
||||
}
|
||||
textures.addAll(model.getTextures());
|
||||
}
|
||||
finally
|
||||
{
|
||||
loadingModels.remove(location);
|
||||
}
|
||||
textures.addAll(model.getTextures());
|
||||
loadingModels.remove(location);
|
||||
}
|
||||
|
||||
private class VanillaModelWrapper implements IRetexturableModel
|
||||
|
||||
Reference in new issue
Block a user