catalysis recipe fixes
This commit is contained in:
parent
dfc1ea7507
commit
6cf3745335
1 changed files with 28 additions and 26 deletions
|
|
@ -14,6 +14,7 @@ local recipes_to_update = {
|
||||||
|
|
||||||
local prefix = "catalyzed-"
|
local prefix = "catalyzed-"
|
||||||
for i, recipe_name in pairs(recipes_to_update) do
|
for i, recipe_name in pairs(recipes_to_update) do
|
||||||
|
if data.raw.recipe[recipe_name] then
|
||||||
-- create a copy of the recipe
|
-- create a copy of the recipe
|
||||||
local r = futil.table.deepcopy(data.raw.recipe[recipe_name])
|
local r = futil.table.deepcopy(data.raw.recipe[recipe_name])
|
||||||
new_name = prefix..r.name
|
new_name = prefix..r.name
|
||||||
|
|
@ -45,5 +46,6 @@ for i, recipe_name in pairs(recipes_to_update) do
|
||||||
for j, fluid in pairs({"heavy-oil", "light-oil", "petroleum-gas"}) do
|
for j, fluid in pairs({"heavy-oil", "light-oil", "petroleum-gas"}) do
|
||||||
util.add_to_ingredient(recipe_name, fluid, 10)
|
util.add_to_ingredient(recipe_name, fluid, 10)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue