From 54f0da8c83ba6aa9090a64da7ff687458ea39586 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Thu, 27 Mar 2025 19:39:41 +0900 Subject: [PATCH] . --- PHI-CL/control.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index 13aceac..f3f9fd0 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -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