From ec3e8c20391d82435776f173103081c79f9f7b4c Mon Sep 17 00:00:00 2001 From: David Quintana Date: Wed, 16 Oct 2019 23:11:23 +0200 Subject: [PATCH] Fix vanilla models with parents not loading properly from forge blockstates. --- .../java/net/minecraftforge/client/model/ModelLoader.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/net/minecraftforge/client/model/ModelLoader.java b/src/main/java/net/minecraftforge/client/model/ModelLoader.java index d25a854a9..2a0636a26 100644 --- a/src/main/java/net/minecraftforge/client/model/ModelLoader.java +++ b/src/main/java/net/minecraftforge/client/model/ModelLoader.java @@ -258,6 +258,10 @@ public final class ModelLoader extends ModelBakery builder.add(new ResourceLocation(s)); } } + + if (model.parent != null) + builder.addAll(model.parent.getTextures(modelGetter, missingTextureErrors)); + return builder.build(); }