diff --git a/forge-1.12.2/templates/tag.java.ftl b/forge-1.12.2/templates/tag.java.ftl index f456a77..8de102a 100644 --- a/forge-1.12.2/templates/tag.java.ftl +++ b/forge-1.12.2/templates/tag.java.ftl @@ -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)}); <#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)}); }