Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Fixed tag naming bug
Browse files Browse the repository at this point in the history
  • Loading branch information
KlemenDEV committed Apr 7, 2021
1 parent 677901a commit 3d27de7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions forge-1.12.2/templates/tag.java.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ package ${package}.util;
@Override public void init(FMLInitializationEvent event){
<#if data.type == "Items">
<#list data.items as value>
OreDictionary.registerOre("${data.getOreDictName()}", ${mappedMCItemToItemStackCode(value, 1)});
OreDictionary.registerOre("${(data.getNameRaw())!data.name}", ${mappedMCItemToItemStackCode(value, 1)});
</#list>
<#elseif data.type == "Blocks">
<#list data.blocks as value>
OreDictionary.registerOre("${data.getOreDictName()}", ${mappedMCItemToItemStackCode(value, 1)});
OreDictionary.registerOre("${(data.getNameRaw())!data.name}", ${mappedMCItemToItemStackCode(value, 1)});
</#list>
</#if>
}
Expand Down

0 comments on commit 3d27de7

Please sign in to comment.