From 6c9418949ff8b847391a0fe06196ad2dba7f0cd0 Mon Sep 17 00:00:00 2001 From: Pyritie Date: Wed, 21 Jan 2026 22:00:07 +0000 Subject: [PATCH] fix casting into ingot molds #2794 #2789 --- .../tfg/ores_and_materials/recipes.materials.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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'}`;