diff --git a/core/inventory/ScanInventory.lua b/core/inventory/ScanInventory.lua index 4b97224..c72f103 100644 --- a/core/inventory/ScanInventory.lua +++ b/core/inventory/ScanInventory.lua @@ -58,13 +58,13 @@ local function partialArrayMatches(partialArray, array) for i = 1, #partialArray do local found = false - for i = 1, #array do - if type(array[i]) == "table" then - if partialObjectMatches(partialArray[i], array[i]) then + for j = 1, #array do + if type(array[j]) == "table" then + if partialObjectMatches(partialArray[i], array[j]) then found = true break end - elseif partialArray[i] == array[i] then + elseif partialArray[i] == array[j] then found = true break end diff --git a/radon.lua b/radon.lua index 8c7d467..552c43b 100644 --- a/radon.lua +++ b/radon.lua @@ -20,7 +20,7 @@ end end -local version = "1.3.0" +local version = "1.3.1" --- Imports local _ = require("util.score")