From 3cbf537c104aca50a3659743053918d6bc75e7cc Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Tue, 26 May 2026 22:50:33 +0900 Subject: [PATCH] . --- PHI-CL/control/pump.lua | 5 +++-- PHI-CL/migrations.lua | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/PHI-CL/control/pump.lua b/PHI-CL/control/pump.lua index 18575e6..a7fbfce 100644 --- a/PHI-CL/control/pump.lua +++ b/PHI-CL/control/pump.lua @@ -1,11 +1,12 @@ local main = {} function main.recipe_hidden(event) - local status = (event.name == defines.events.on_player_cheat_mode_enabled) + local status = game.players[event.player_index].cheat_mode + local force = game.players[event.player_index].force for _, v in pairs(prototypes.fluid) do if v.subgroup == 'fluid' then - prototypes.recipe['super-pump-' .. v.name].enabled = status + force.recipes['super-pump-' .. v.name].enabled = status end end end diff --git a/PHI-CL/migrations.lua b/PHI-CL/migrations.lua index f704c53..23f2865 100644 --- a/PHI-CL/migrations.lua +++ b/PHI-CL/migrations.lua @@ -21,6 +21,7 @@ for _, force in pairs(game.forces) do recipes[vn].reload() end end + elseif (not technologies[v.tech]) or technologies[v.tech].researched then for j=v.min, v.max, 1 do local vn = (v.ref_name or v.name) .. '-' .. j