diff --git a/kubejs/server_scripts/tfg/ores_and_materials/recipes.materials.js b/kubejs/server_scripts/tfg/ores_and_materials/recipes.materials.js index d90ff63b8..f1854f2db 100644 --- a/kubejs/server_scripts/tfg/ores_and_materials/recipes.materials.js +++ b/kubejs/server_scripts/tfg/ores_and_materials/recipes.materials.js @@ -135,10 +135,14 @@ function addMaterialCasting(event, outputItem, ceramicMold, isFireMold, gtMold, // If it's a TFC material, add ceramic mold casting + create spouting const tfcProperty = material.getProperty(TFGPropertyKey.TFC_PROPERTY); - if (tfcProperty !== null + // Check if the material is a "castable" material (i.e., pre-iron), OR if this is for the ingot mold, + // which is an exception that everything can cast into + const canBeCasted = material.hasFlag(TFGMaterialFlags.CAN_BE_UNMOLDED) || tagPrefixName === 'ingot'; + if (canBeCasted + && tfcProperty !== null && ceramicMold !== null - && material !== GTMaterials.WroughtIron - && material.hasFlag(TFGMaterialFlags.CAN_BE_UNMOLDED)) + // Liquid wrought iron doesn't exist in the TFC era + && material !== GTMaterials.WroughtIron) { const outputMaterial = (tfcProperty.getOutputMaterial() === null) ? material : tfcProperty.getOutputMaterial(); const id = `${materialName}_${tagPrefixName}_${isFireMold ? 'fire' : 'ceramic'}`;