Update main.lua

This commit is contained in:
2023-03-20 22:32:53 +09:00
parent 6e773c1e99
commit f609d5779a

View File

@@ -221,7 +221,7 @@ for i=1, #recipe_list, 1 do
if data.raw.recipe[recipe_list[i]] ~= nil then
for j=1, #recipe_multiplier, 1 do
local item = table.deepcopy(data.raw.recipe[recipe_list[i]])
item.enabled = false
item.enabled = true
if (item.normal ~= nil) and (item.normal ~= false) then
for k, v in pairs(item.normal.ingredients) do
@@ -326,18 +326,6 @@ for i=1, #recipe_list, 1 do
end
end
for t=1, #data.raw.technology, 1 do
for k, _ in pairs(data.raw.technology[t].effects) do
if data.raw.technology[t].effects[k].type == 'unlock-recipe' then
if data.raw.recipe[data.raw.technology[t].effects[k].recipe] ~= nil then
for j=1, #recipe_multiplier, 1 do
table.insert(data.raw.technology[t].effects, {type='unlock-recipe', recipe= data.raw.technology[t].effects[k].recipe .. '-' .. j})
end
end
end
end
end
data.raw.recipe['loader'].hidden = false
data.raw.recipe['fast-loader'].hidden = false
data.raw.recipe['express-loader'].hidden = false