mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 11:29:15 +00:00
Prevent missing model from loading multiple times.
This commit is contained in:
1 parent
efa7fd4dfe
commit
a073b0e386
1 file changed
+4
@@ -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/"))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user