mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-06-27 13:56:20 +09:00
.
This commit is contained in:
@@ -13,11 +13,11 @@ function main.build(event)
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
return main
|
||||
|
||||
Reference in New Issue
Block a user