From 5110391d66d445dbc6b97753e3531e3502891524 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Mon, 7 Apr 2025 23:29:35 +0900 Subject: [PATCH] . --- PHI-CL/control.lua | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index 792f4d5..f6bae70 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -64,7 +64,21 @@ if settings.startup['PHI-CT'].value then hidden_recipe_enable(e) end) - function gui_create(player) + script.on_init(function(_) + for _, surface in pairs(game.surfaces) do + for _, e in pairs(surface.find_entities_filtered{name='trash-chest'}) do + e.infinity_container_filters = {} + e.remove_unfiltered_items = true + end + + for _, e in pairs(surface.find_entities_filtered{name='trash-pipe'}) do + e.set_infinity_pipe_filter(nil) + end + end + end) + + --[[ + function gui_create(player) if player.gui.relative.inserter_config then player.gui.relative.inserter_config.destroy() end @@ -207,7 +221,6 @@ if settings.startup['PHI-CT'].value then end end) - --[[ local gui = {} local inserter_utils = {} math2d.direction = {vectors = {{x = 0, y = -1}, {x = 1, y = -1}, {x = 1, y = 0}, {x = 1, y = 1}, {x = 0, y = 1}, {x = -1, y = 1}, {x = -1, y = 0}, {x = -1, y = -1}}}