autocrafting improvements
This commit is contained in:
@@ -52,16 +52,16 @@ function itemDB:splitKey(key, item)
|
||||
end
|
||||
|
||||
function itemDB:get(key)
|
||||
if type(key) == 'string' then
|
||||
key = self:makeKey(self:splitKey(key))
|
||||
end
|
||||
|
||||
local item = TableDB.get(self, key)
|
||||
|
||||
if item then
|
||||
return item
|
||||
end
|
||||
|
||||
if type(key) == 'string' then
|
||||
key = self:makeKey(self:splitKey(key))
|
||||
end
|
||||
|
||||
if not key[2] or key[2] ~= 0 then
|
||||
item = TableDB.get(self, { key[1], 0, key[3] })
|
||||
if item and item.maxDamage > 0 then
|
||||
|
||||
Reference in New Issue
Block a user