Skip to content

Commit

Permalink
Possibly fix #80
Browse files Browse the repository at this point in the history
 Changes to be committed:
	modified:   src/fabric-1.16.3/templates/modbase/client.java.ftl
  • Loading branch information
BoogieMonster1O1 committed Oct 4, 2020
1 parent bb8e0e1 commit 8505ab5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/fabric-1.16.3/templates/modbase/client.java.ftl
Expand Up @@ -47,16 +47,16 @@ public class ClientInit implements ClientModInitializer{
<#list w.getElementsOfType("BLOCK") as block>
<#assign ge = block.getGeneratableElement()>
<#if ge.transparencyType == "CUTOUT">
BlockRenderLayerMap.INSTANCE.putBlock(block, RenderLayer.getCutout());
BlockRenderLayerMap.INSTANCE.putBlock(${JavaModName}.{block}_BLOCK, RenderLayer.getCutout());
<#elseif ge.transparencyType == "CUTOUT_MIPPED">
BlockRenderLayerMap.INSTANCE.putBlock(block, RenderLayer.getCutoutMipped());
BlockRenderLayerMap.INSTANCE.putBlock(${JavaModName}.{block}_BLOCK, RenderLayer.getCutoutMipped());
<#elseif ge.transparencyType == "TRANSLUCENT">
BlockRenderLayerMap.INSTANCE.putBlock(block, RenderLayer.getTranslucent());
BlockRenderLayerMap.INSTANCE.putBlock(${JavaModName}.{block}_BLOCK, RenderLayer.getTranslucent());
</#if>
</#list>

<#list w.getElementsOfType("BLOCK") as block>
BlockRenderLayerMap.INSTANCE.putBlock(${JavaModName}.block_BLOCK, RenderLayer.getCutoutMipped());
<#list w.getElementsOfType("PLANT") as block>
BlockRenderLayerMap.INSTANCE.putBlock(${JavaModName}.${block}_BLOCK, RenderLayer.getCutoutMipped());
</#list>
<#list w.getElementsOfType("CODE") as code>
${code}CustomCode.initializeClient();
Expand Down

0 comments on commit 8505ab5

Please sign in to comment.