mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 19:15:22 +09:00
.
This commit is contained in:
@@ -39,8 +39,14 @@ if settings.startup['PHI-CT'].value then
|
||||
force.recipes['infinity-pipe'].enabled = enable
|
||||
end
|
||||
|
||||
script.on_event(defines.events.on_player_cheat_mode_enabled, hidden_recipe_enable)
|
||||
script.on_event(defines.events.on_player_cheat_mode_disabled, hidden_recipe_enable)
|
||||
script.on_event(defines.events.on_player_cheat_mode_enabled, function(e)
|
||||
hidden_recipe_enable(e)
|
||||
end)
|
||||
|
||||
script.on_event(defines.events.on_player_cheat_mode_disabled, function(e)
|
||||
hidden_recipe_enable(e)
|
||||
end)
|
||||
|
||||
script.on_init(function(_)
|
||||
for _, surface in pairs(game.surfaces) do
|
||||
for _, e in pairs(surface.find_entities_filtered{name='trash-chest'}) do
|
||||
|
||||
Reference in New Issue
Block a user