From 00748914db41427f90384939e8efb8b1996d9ae0 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Fri, 26 Jun 2026 02:14:19 +0900 Subject: [PATCH] . --- PHI-CL/data-updates.lua | 10 ---------- PHI-CL/data/b/gm-vp.lua | 6 +++++- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/PHI-CL/data-updates.lua b/PHI-CL/data-updates.lua index d4ef14b..e69de29 100644 --- a/PHI-CL/data-updates.lua +++ b/PHI-CL/data-updates.lua @@ -1,10 +0,0 @@ - -if settings.startup['PHI-GM'].value then - if settings.startup['PHI-GM'].value == 'VP' then - for k, v in pairs(data.raw.recipe) do - if v.categories and v.categories == {'recycling'} and v.hidden then - data.raw.recipe[k] = nil - end - end - end -end diff --git a/PHI-CL/data/b/gm-vp.lua b/PHI-CL/data/b/gm-vp.lua index 4957f8b..edf8e90 100644 --- a/PHI-CL/data/b/gm-vp.lua +++ b/PHI-CL/data/b/gm-vp.lua @@ -461,7 +461,7 @@ end -- GM-VP C 61 SPACE_AGE RECIPE -- GM-VP H 1 QUALITY RECIPE -- GM-VP H 54 SPACE_AGE RECIPE -for _, v in pairs(data.raw.recipe) do +for rk, v in pairs(data.raw.recipe) do v.surface_conditions = nil v.maximum_productivity = nil v.auto_recycle = false @@ -475,6 +475,10 @@ for _, v in pairs(data.raw.recipe) do v.hidden = true v.hidden_in_factoriopedia = true end + + if v.categories and v.categories == {'recycling'} and v.hidden then + data.raw.recipe[rk] = nil + end end if data.raw.recipe['scrap-recycling'] then