diff --git a/PHI-CL/control/pump.lua b/PHI-CL/control/pump.lua index 01868eb..5904069 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 hidden = (event.name == defines.events.on_player_cheat_mode_enabled and false) or true + local status = (event.name == defines.events.on_player_cheat_mode_enabled and false) or true for _, v in pairs(prototypes.fluid) do - if v.subgroup == 'super-pump-fluid' then - prototypes.recipe['super-pump-' .. v.name].hidden = hidden + if v.subgroup == 'fluid' then + prototypes.recipe['super-pump-' .. v.name].hidden = status end end end