Update main.lua

This commit is contained in:
PHIDIAS
2023-03-18 16:49:04 +09:00
parent 3d82a71339
commit 4ff58b820a

View File

@@ -326,7 +326,7 @@ for i=1, #recipe_list, 1 do
end
end
for t, _ in pairs(data.raw.technology) do
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