mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 11:05:40 +00:00
[1.19.3] Fix models nested in custom geometries not resolving parents (#9200)
This commit is contained in:
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>
|
||||
|
||||
Reference in new issue
Block a user