From e38d8732ddab7a041d39fde98594f42da49bc8c9 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Tue, 26 May 2026 21:50:16 +0900 Subject: [PATCH] . --- PHI-CL/control/pump.lua | 4 ++-- PHI-CL/data/b/mig.lua | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/PHI-CL/control/pump.lua b/PHI-CL/control/pump.lua index 7f10e7e..18575e6 100644 --- a/PHI-CL/control/pump.lua +++ b/PHI-CL/control/pump.lua @@ -1,11 +1,11 @@ local main = {} function main.recipe_hidden(event) - local status = game.players[event.player_index].cheat_mode + local status = (event.name == defines.events.on_player_cheat_mode_enabled) for _, v in pairs(prototypes.fluid) do if v.subgroup == 'fluid' then - prototypes.recipe['super-pump-' .. v.name].hidden = status + prototypes.recipe['super-pump-' .. v.name].enabled = status end end end diff --git a/PHI-CL/data/b/mig.lua b/PHI-CL/data/b/mig.lua index 8d6bf40..78cde06 100644 --- a/PHI-CL/data/b/mig.lua +++ b/PHI-CL/data/b/mig.lua @@ -184,12 +184,12 @@ for _, v in pairs(data.raw.fluid) do name = 'super-pump-' .. v.name, category = 'super-pump-fluid', energy_required = 1, - enabled = true, + enabled = false, ingredients = {}, results = {{type = 'fluid', name = v.name, amount = 12000, temperature = v.default_temperature or 15}}, main_product = v.name, hide_from_player_crafting = true, - hidden = true, + hidden = false, hidden_in_factoriopedia = true, allow_productivity = false, crafting_machine_tint = {primary = v.flow_color or {r = 255,g = 255,b = 255}}, @@ -199,7 +199,7 @@ for _, v in pairs(data.raw.fluid) do end if data.raw.fluid['water'] and data.raw.recipe['super-pump-water'] then - data.raw.recipe['super-pump-water'].hidden = false + data.raw.recipe['super-pump-water'].enabled = true end -- MIG C 5 BASE ENTITY