Recipes for smelting now force set a main_result for compatibility with SE.

This commit is contained in:
Adamo 2020-11-16 00:46:42 -05:00
parent a265349635
commit 12be075733
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,11 @@
---------------------------------------------------------------------------------------------------
Version: 0.3.3
Date: 2020-11-15
Recipes:
- Smelting recipes will now force-set a main_result value for
compatibility with SE.
---------------------------------------------------------------------------------------------------
Version: 0.3.2
Date: 2020-11-15

View File

@ -239,6 +239,7 @@ local flux_name = "adamo-chemical-calcite"
local clinker_name = "adamo-chemical-clinker"
local fluxxing_category = "adamo-chemical-firing"
local fluxxing_subgroup = fluxxing_category
local calcinate_recipe = function(recipe,mult)
local recipe = recipe_or_bust(recipe)
if not recipe then return nil end
@ -247,6 +248,7 @@ local calcinate_recipe = function(recipe,mult)
local flux_recipe = util.table.deepcopy(recipe)
flux_recipe.name = flux_recipe.name.."-calcined"
mult_recipe_energy(flux_recipe,time_mult/ore_mult*mult)
set_main_product(flux_recipe,get_main_result(flux_recipe))
mult_in_recipe(flux_recipe,mult)
flux_recipe.category = fluxxing_category
flux_recipe.subgroup = fluxxing_subgroup