mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-11-25 21:53:12 +09:00
.
This commit is contained in:
1 parent
a74332567e
commit
5614e98cb4
1 file changed
+1
-9
@@ -1,15 +1,7 @@
|
|||||||
local main = {}
|
local main = {}
|
||||||
|
|
||||||
function main.build(event)
|
function main.build(event)
|
||||||
if event.entity.type ~= 'logistic-container' then
|
if event.entity.type ~= 'logistic-container' or not event.entity.logistic_mode or event.entity.logistic_mode ~= 'storage' then
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
if event.entity.logistic_mode ~= 'storage' then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
if not event.entity.has_items_inside() then
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user