From d0929cf5c856ad8f27fec63d6ee1f7de410ca12f Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Thu, 3 Oct 2024 16:54:22 +0200 Subject: [PATCH] Fix iterator function in storage search --- storage/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/init.lua b/storage/init.lua index 1003eb7..3763e44 100644 --- a/storage/init.lua +++ b/storage/init.lua @@ -79,7 +79,7 @@ end function Storage:find(query) local result = {} for _,chest in ipairs(self) do - for _,stack in chest:find(query) do + for _,stack in ipairs(chest:find(query)) do table.insert(result, stack) end end