Merge pull request #2091 from shadekiller666/ItemModelLoadingFix
Fixed a bug with item model loading
This commit is contained in:
commit
cf568ae85f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue