This commit is contained in:
2026-05-08 23:44:29 +09:00
parent 6000d862d8
commit 9cf351fba3
2 changed files with 14 additions and 7 deletions
+2 -7
View File
@@ -2,6 +2,7 @@ local cargo_landing_pad = require('control/cargo-landing-pad')
local cargo_landing_chest = require('control/cargo-landing-chest') local cargo_landing_chest = require('control/cargo-landing-chest')
local lab = require('control/lab') local lab = require('control/lab')
local rail_support = require('control/rail-support') local rail_support = require('control/rail-support')
local trash = require('control/trash')
local inserter_direction = { local inserter_direction = {
[1] = defines.direction.north, [1] = defines.direction.north,
@@ -99,13 +100,7 @@ local function entity_build(event)
cargo_landing_chest.build(event) cargo_landing_chest.build(event)
lab.build(event) lab.build(event)
rail_support.build(event) rail_support.build(event)
trash.build(event)
if event.entity.type == 'infinity-container' and event.entity.name == 'trash-chest' then
event.entity.remove_unfiltered_items = true
elseif event.entity.type == 'infinity-pipe' and event.entity.name == 'trash-pipe' then
event.entity.set_infinity_pipe_filter(nil)
end
end end
local function storage_init() local function storage_init()
+12
View File
@@ -0,0 +1,12 @@
local main = {}
function main.build(event)
if event.entity.type == 'infinity-container' and event.entity.name == 'trash-chest' then
event.entity.remove_unfiltered_items = true
elseif event.entity.type == 'infinity-pipe' and event.entity.name == 'trash-pipe' then
event.entity.set_infinity_pipe_filter(nil)
end
end
return main