From 88b1a13f530beff67a750042195ad3e85af1840c Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Sat, 24 May 2025 13:57:37 +0900 Subject: [PATCH] . --- PHI-CL/data-final-fixes.lua | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/PHI-CL/data-final-fixes.lua b/PHI-CL/data-final-fixes.lua index 01f80b0..abeac8e 100644 --- a/PHI-CL/data-final-fixes.lua +++ b/PHI-CL/data-final-fixes.lua @@ -11,12 +11,27 @@ do end if p and v.maximum_productivity then - v.maximum_productivity = 999 + v.maximum_productivity = nil end end - data.raw['lamp']['small-lamp'].light.color = {1, 1, 1} - data.raw['lamp']['small-lamp'].light_when_colored.color = {1, 1, 1} + for _, v in pairs(data.raw['lamp']) do + if v.light then + v['lamp']['small-lamp'].light.color = {1, 1, 1} + v['lamp']['small-lamp'].light_when_colored.color = {1, 1, 1} + end + end + + for _, v in pairs(data.raw['land-mine']) do + if v.flags then + for fk, fv in ipairs(v.flags) do + if fv == 'placeable-off-grid' then + table.remove(v.flags, fk) + break + end + end + end + end end if mods['space-age'] then