Prevent missing model from loading multiple times.

This commit is contained in:
RainWarrior 2016-03-29 12:05:59 +03:00
parent efa7fd4dfe
commit a073b0e386
1 changed files with 4 additions and 0 deletions

View File

@ -818,6 +818,10 @@ public final class ModelLoader extends ModelBakery
public IModel loadModel(ResourceLocation modelLocation) throws Exception
{
if(modelLocation.equals(MODEL_MISSING))
{
return loader.getMissingModel();
}
String modelPath = modelLocation.getResourcePath();
if(modelLocation.getResourcePath().startsWith("models/"))
{