diff --git a/storage/init.lua b/storage/init.lua index dd150f5..aaf99b7 100644 --- a/storage/init.lua +++ b/storage/init.lua @@ -13,7 +13,7 @@ function Storage:fromPeripherals(names) local obj = { count = #names } - for name,homogeneous in names do + for name,homogeneous in pairs(names) do table.insert(obj, Chest:fromPeripheral(name, homogeneous)) end