This commit is contained in:
2026-06-24 19:00:39 +09:00
parent 2c4a87155d
commit 7b9c1d7349
+2 -2
View File
@@ -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