This commit is contained in:
2025-01-27 23:22:24 +09:00
parent 00e21c8eca
commit 5a244b2f2e

View File

@@ -335,11 +335,11 @@ if settings.startup['PHI-MI'].value then
if settings.startup['PHI-MI-PRODUCTIVITY'].value then if settings.startup['PHI-MI-PRODUCTIVITY'].value then
for k, v in pairs(items.item_productivity) do for k, v in pairs(items.item_productivity) do
if data.raw.technology[v] then if data.raw.recipe[k] and data.raw.technology[v] then
data:extend({{ data:extend({{
type = 'technology', type = 'technology',
name = k .. '-productivity', name = k .. '-productivity',
prerequisites = tech, prerequisites = v,
effects = { effects = {
{ {
type = 'change-recipe-productivity', type = 'change-recipe-productivity',