From deb5f3a1bdf93ca81fa5b44854c26b7005cb7076 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Thu, 3 Apr 2025 00:14:44 +0900 Subject: [PATCH] . --- PHI-CL/changelog.txt | 1 + PHI-CL/data-final-fixes.lua | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/PHI-CL/changelog.txt b/PHI-CL/changelog.txt index daf0937..48a0a7f 100644 --- a/PHI-CL/changelog.txt +++ b/PHI-CL/changelog.txt @@ -5,6 +5,7 @@ Date: 2025-04-03 Changes: - [SA] Fusion generator changed to input and output fluid. - [CT] Cleanup map preset generation code. + - [VP] Hide some unused item, such as recycling recipe. --------------------------------------------------------------------------------------------------- Version: 3.0.82 diff --git a/PHI-CL/data-final-fixes.lua b/PHI-CL/data-final-fixes.lua index 6f474c4..9c2988f 100644 --- a/PHI-CL/data-final-fixes.lua +++ b/PHI-CL/data-final-fixes.lua @@ -2,10 +2,17 @@ local items = require 'config' local main = require 'main' if mods['space-age'] and settings.startup['PHI-VP'].value and settings.startup['PHI-VP-MAIN'].value then + local vp = settings.startup['PHI-VP'].value and settings.startup['PHI-VP-MAIN'].value + local sa = settings.startup['PHI-SA'].value and settings.startup['PHI-SA-GENERIC'].value + for k, v in pairs(data.raw.recipe) do - if v.category == 'recycling' then + if vp and v.category == 'recycling' then data.raw.recipe[k] = nil end + + if (vp or sa) and v.maximum_productivity then + v.maximum_productivity = nil + end end end