[1.19.3] Fix models nested in custom geometries not resolving parents (#9200)

This commit is contained in:
Dennis C authored and GitHub committed 2022-12-11 21:25:14 +01:00
1 parent 8bf96d8738
commit dccb1ab3a4
5 files changed
+44

No files matched your search

@@ -266,6 +266,12 @@ public class FullPotsAccessorDemo
public BakedModel bake(IGeometryBakingContext context, ModelBaker baker, Function<net.minecraft.client.resources.model.Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides, ResourceLocation modelLocation) {
return new DioritePotModel(wrappedModel.bake(baker, spriteGetter, modelState, modelLocation));
}
@Override
public void resolveParents(Function<ResourceLocation, UnbakedModel> modelGetter, IGeometryBakingContext context)
{
wrappedModel.resolveParents(modelGetter);
}
}
private static class DioritePotModel extends BakedModelWrapper<BakedModel>