Autocrafting improvements

This commit is contained in:
kepler155c
2017-12-23 01:48:36 -05:00
parent 863b7ff600
commit 85c5f542a8
10 changed files with 1059 additions and 232 deletions

View File

@@ -86,13 +86,12 @@ function ChestAdapter:listItems(throttle)
if not entry then
self.cache[key] = v
local ikey = { v.name, v.damage, v.nbtHash }
if not itemDB:get(ikey) then
if not itemDB:get(v) then
local t = { }
for _,k in pairs(keys) do
t[k] = v[k]
end
itemDB:add(ikey, t)
itemDB:add(t)
end
else
entry.count = entry.count + v.count