This commit is contained in:
2025-05-13 19:37:26 +09:00
parent 1d7afd8e60
commit db0ca9cced

View File

@@ -32,7 +32,7 @@ local rail_support_pole = {
if settings.startup['PHI-CT'].value then if settings.startup['PHI-CT'].value then
local function trash_chest_creation(event) local function trash_chest_creation(event)
(event.entity or event.created_entity).remove_unfiltered_items = true event.entity.remove_unfiltered_items = true
end end
script.on_event(defines.events.on_built_entity, trash_chest_creation, {{filter='name', name='trash-chest'}}) script.on_event(defines.events.on_built_entity, trash_chest_creation, {{filter='name', name='trash-chest'}})