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
|
||||
|
||||
@@ -192,7 +192,6 @@ for _, v in pairs(data.raw.fluid) do
|
||||
hidden = false,
|
||||
hidden_in_factoriopedia = true,
|
||||
allow_productivity = false,
|
||||
crafting_machine_tint = {primary = v.flow_color or {r = 255,g = 255,b = 255}},
|
||||
localised_name = {'fluid-name.' .. v.name}
|
||||
}})
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user