mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-06-19 10:19:59 +09:00
.
This commit is contained in:
@@ -2,11 +2,13 @@ local main = {}
|
||||
|
||||
function main.recipe_hidden(event)
|
||||
local status = game.players[event.player_index].cheat_mode
|
||||
local force = game.players[event.player_index].force
|
||||
local recipe = game.players[event.player_index].force.recipes
|
||||
|
||||
for _, v in pairs(prototypes.fluid) do
|
||||
if v.subgroup == 'fluid' then
|
||||
force.recipes['super-pump-' .. v.name].enabled = status
|
||||
local fn = 'super-pump-' .. v.name
|
||||
|
||||
if recipe[fn] then
|
||||
recipe[fn].enabled = status
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user