From b763d2800018b2e8b24db9273d7a48d411c99c60 Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Thu, 3 Oct 2024 16:46:48 +0200 Subject: [PATCH] Fix iterator bug --- storage/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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