mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-06-19 10:19:59 +09:00
.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user