From 3208fd5623f308dabcf844bcb96c0f8a708530c4 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Tue, 13 May 2025 20:09:26 +0900 Subject: [PATCH] . --- PHI-CL/control.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index 6c43d6c..4805af1 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -32,8 +32,9 @@ local rail_support_pole = { if settings.startup['PHI-CT'].value then local function trash_chest_creation(event) - event.entity.infinity_container_filters = {} - event.entity.remove_unfiltered_items = true + local entity = event.created_entity or event.entity + entity.infinity_container_filters = {} + entity.remove_unfiltered_items = true end local filter = {{filter='name', name='trash-chest', mode='and'}, {filter='type', type='infinity-container', mode='and'}}