mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-05-12 21:08:43 +09:00
.
This commit is contained in:
+2
-7
@@ -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()
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user