diff --git a/PHI-CL/data-updates.lua b/PHI-CL/data-updates.lua index 43ea79a..7a0b0a7 100644 --- a/PHI-CL/data-updates.lua +++ b/PHI-CL/data-updates.lua @@ -2,23 +2,6 @@ local items = require 'config' local main = require 'main' local file_stage = 2 -if mods['space-age'] and settings.startup['PHI-VP'].value and settings.startup['PHI-VP-MAIN'].value then - for _, v in pairs(data.raw.recipe) do - v.auto_recycle = false - v.allow_quality = false - v.allow_quality_message = nil - - if v.category == 'recycling' then - v.hidden = true - v.hidden_in_factoriopedia = true - end - end - - for _, v in pairs(data.raw.item) do - v.auto_recycle = false - end -end - for _, v in pairs(items['item']) do if (v.stage == file_stage) and v.enabled and (v.max >= v.min) then v.category = 'item' diff --git a/PHI-CL/data.lua b/PHI-CL/data.lua index ddb1344..15fdf91 100644 --- a/PHI-CL/data.lua +++ b/PHI-CL/data.lua @@ -1324,6 +1324,21 @@ if settings.startup['PHI-VP'].value then v.minable.results = {{type = 'item', name = 'wood', amount = 4}} end end + + for _, v in pairs(data.raw.recipe) do + v.auto_recycle = false + v.allow_quality = false + v.allow_quality_message = nil + + if v.category and v.category == 'recycling' then + v.hidden = true + v.hidden_in_factoriopedia = true + end + end + + for _, v in pairs(data.raw.item) do + v.auto_recycle = false + end end if mods['quality'] and settings.startup['PHI-VP-MAIN'].value and (not settings.startup['PHI-SA-MAX-QUALITY'].value) then