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