diff --git a/PHI-EN/info.json b/PHI-EN/info.json index a535c0a..53d2528 100644 --- a/PHI-EN/info.json +++ b/PHI-EN/info.json @@ -1,6 +1,6 @@ { "name": "PHI-EN", - "version": "1.3.4", + "version": "1.3.5", "factorio_version": "1.1", "date": "2023-09-19", "title": "Phidias Energy", diff --git a/PHI-EN/migrations/migrations.lua b/PHI-EN/migrations/migrations.lua index 82649a0..7dedc4b 100644 --- a/PHI-EN/migrations/migrations.lua +++ b/PHI-EN/migrations/migrations.lua @@ -4,13 +4,15 @@ for _, force in pairs(game.forces) do local technologies = force.technologies local recipes = force.recipes - for _, v in pairs(items) do - if v.enabled then - for j=v.min, v.max, 1 do - if technologies['compound-energy-' .. j] ~= nil then - if technologies['compound-energy-' .. j].researched then - recipes[v.name .. '-' .. j].enabled = true - recipes[v.name .. '-' .. j].reload() + for k, v in pairs(items) do + if k ~= 'setting' then + if v.enabled then + for j=v.min, v.max, 1 do + if technologies['compound-energy-' .. j] ~= nil then + if technologies['compound-energy-' .. j].researched then + recipes[v.name .. '-' .. j].enabled = true + recipes[v.name .. '-' .. j].reload() + end end end end diff --git a/PHI-EQ/info.json b/PHI-EQ/info.json index 58ebb01..c29ced6 100644 --- a/PHI-EQ/info.json +++ b/PHI-EQ/info.json @@ -1,6 +1,6 @@ { "name": "PHI-EQ", - "version": "1.2.0", + "version": "1.2.1", "factorio_version": "1.1", "date": "2023-09-19", "title": "Phidias Equipment", diff --git a/PHI-EQ/migrations/migrations.lua b/PHI-EQ/migrations/migrations.lua index f89482a..05f0688 100644 --- a/PHI-EQ/migrations/migrations.lua +++ b/PHI-EQ/migrations/migrations.lua @@ -4,13 +4,15 @@ for _, force in pairs(game.forces) do local technologies = force.technologies local recipes = force.recipes - for _, v in pairs(items) do - if v.enabled then - if technologies[v.tech] ~= nil then - if technologies[v.tech].researched then - for j=v.min, v.max, 1 do - recipes[v.name .. '-' .. j].enabled = true - recipes[v.name .. '-' .. j].reload() + for k, v in pairs(items) do + if k ~= 'setting' then + if v.enabled then + if technologies[v.tech] ~= nil then + if technologies[v.tech].researched then + for j=v.min, v.max, 1 do + recipes[v.name .. '-' .. j].enabled = true + recipes[v.name .. '-' .. j].reload() + end end end end