Autocrafting improvements

This commit is contained in:
kepler155c
2017-12-16 00:09:28 -05:00
parent 0ce537d4ce
commit 863b7ff600
7 changed files with 341 additions and 301 deletions

View File

@@ -71,6 +71,18 @@ function itemDB:get(key)
return item
end
end
if not key[3] then
for _,item in pairs(self.data) do
if item.name == key[1] and
item.damage == key[2] and
item.nbtHash then
item = Util.shallowCopy(item)
item.nbtHash = nil
return item
end
end
end
end
function itemDB:add(key, item)