Fix iterator function in storage search

This commit is contained in:
Gabriel Tofvesson 2024-10-03 16:54:22 +02:00
parent 0dbbf36455
commit d0929cf5c8

View File

@ -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