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
2c4a87155d
commit
7b9c1d7349
1 file changed
+2
-2
@@ -13,11 +13,11 @@ function main.build(event)
|
|||||||
|
|
||||||
local contents = inventory.get_contents()
|
local contents = inventory.get_contents()
|
||||||
|
|
||||||
if not contents or #contents ~= 1 then
|
if not contents or #contents ~= 1 or not contents[1].name then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
event.entity.storage_filter = {name = contents[1].name, quality = contents[1].quality}
|
event.entity.storage_filter = {name = contents[1].name, quality = contents[1].quality or 'normal'}
|
||||||
end
|
end
|
||||||
|
|
||||||
return main
|
return main
|
||||||
Reference in new issue
Block a user