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