Prevent missing model from loading multiple times.
This commit is contained in:
parent
efa7fd4dfe
commit
a073b0e386
|
@ -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/"))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue