mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-06-19 10:19:59 +09:00
.
This commit is contained in:
@@ -49,10 +49,6 @@ script.on_configuration_changed(function()
|
|||||||
combinator.storage_init()
|
combinator.storage_init()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
if (settings.startup['PHI-MI'].value and settings.startup['PHI-MI-GENERIC'].value) or (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '') then
|
|
||||||
script.on_event({defines.events.on_player_cheat_mode_enabled, defines.events.on_player_cheat_mode_disabled}, pump.recipe_hidden)
|
|
||||||
end
|
|
||||||
|
|
||||||
if settings.startup['PHI-MI'].value or (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '') then
|
if settings.startup['PHI-MI'].value or (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '') then
|
||||||
script.on_event(defines.events.on_player_created, function(event)
|
script.on_event(defines.events.on_player_created, function(event)
|
||||||
if not event.player_index or not game.players[event.player_index] then
|
if not event.player_index or not game.players[event.player_index] then
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
local main = {}
|
|
||||||
|
|
||||||
function main.recipe_hidden(event)
|
|
||||||
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].enabled = status
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
return main
|
|
||||||
Reference in New Issue
Block a user