Skip to content

Commit

Permalink
fix: skeleton skulls render with block atlas
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Nov 9, 2024
1 parent dc22078 commit 34416ba
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,9 @@ public static RenderType remap(RenderType in) {
return in;
} else {
return remappedTypes.computeIfAbsent(in, (type) -> {
if(type.name.contains("cutout")) //hack to address https://github.com/klikli-dev/modonomicon/issues/260, but it should work reasonably well
//hack to address https://github.com/klikli-dev/modonomicon/issues/260, but it should work reasonably well
//need to exclude entity, because otherwise entity cutout layers will render using the block atlas.
if(type.name.contains("cutout") && !type.name.contains("entity"))
type = RenderType.translucent();
return new GhostRenderLayer(type);
});
Expand Down

0 comments on commit 34416ba

Please sign in to comment.