From 11a005969cd0269cce7dd3bccd77dc3cdec00614 Mon Sep 17 00:00:00 2001 From: kepler155c Date: Thu, 19 Oct 2017 03:23:05 -0400 Subject: [PATCH] crafter --- apis/chestAdapter18.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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