Skip to content

Commit

Permalink
fix: Transparent facades not rendering correctly.
Browse files Browse the repository at this point in the history
Closes: GH-970
  • Loading branch information
Rover656 committed Jan 12, 2025
1 parent 4e3aeff commit cc5fbad
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,12 @@ public List<RenderType> getRenderTypes(ItemStack itemStack, boolean fabulous) {
if (paintData == null) {
return List.of(RenderType.cutout());
}

var paintStack = paintData.paint().asItem().getDefaultInstance();
return Minecraft.getInstance()
.getItemRenderer()
.getModel(paintData.paint().asItem().getDefaultInstance(), null, null, 0)
.getRenderTypes(itemStack, fabulous);
.getModel(paintStack, null, null, 0)
.getRenderTypes(paintStack, fabulous);
}

@Override
Expand Down

0 comments on commit cc5fbad

Please sign in to comment.