mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-06-27 05:46:22 +09:00
.
This commit is contained in:
@@ -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