diff --git a/apis/chestAdapter18.lua b/apis/chestAdapter18.lua index 6a82cc6..23573da 100644 --- a/apis/chestAdapter18.lua +++ b/apis/chestAdapter18.lua @@ -127,9 +127,11 @@ function ChestAdapter:craftItems() end local function rpairs(t) - local i = #t + local tkeys = Util.keys(t) + local i = #tkeys return function() - local k,v = i, t[i] + local key = tkeys[i] + local k,v = key, t[key] i = i - 1 if v then return k, v