From 49fc0557bbb5cdae0aeab0fb006b71d6b7e1a301 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Tue, 13 May 2025 19:35:46 +0900 Subject: [PATCH] . --- PHI-CL/control.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index 1181aee..4f63cd4 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -32,8 +32,8 @@ local rail_support_pole = { if settings.startup['PHI-CT'].value then local function trash_chest_creation(event) - event.entity.infinity_container_filters = {name='trash-chest', mode='exactly', count=0, index=1} - event.entity.remove_unfiltered_items = true + local entity = event.entity or event.created_entity + entity.remove_unfiltered_items = true end script.on_event(defines.events.on_built_entity, trash_chest_creation, {{filter='name', name='trash-chest'}})