From 85711698800a1cd742f699934761562e9f37a67a Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Fri, 15 Nov 2024 23:32:14 +0900 Subject: [PATCH] . --- PHI-CL/data.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PHI-CL/data.lua b/PHI-CL/data.lua index 20433e7..54dc30b 100644 --- a/PHI-CL/data.lua +++ b/PHI-CL/data.lua @@ -799,9 +799,9 @@ if settings.startup['PHI-SA'].value then v.surface_conditions = nil end - for k, v in pairs(items['item']) do + for _, v in pairs(items['item']) do if v.enabled and v.mod and (v.mod == 'space-age' or v.mod == 'quality') then - if data.raw.technology[v.tech].hidden or data.raw.recipe[k].hidden then + if (data.raw.technology[v.tech] and data.raw.technology[v.tech].hidden) or (data.raw.recipe[v.name] and data.raw.recipe[v.name].hidden) then v.enabled = false end end