This commit is contained in:
kepler155c
2018-10-29 17:15:07 -04:00
parent 46ed01630d
commit f24aeb135d
3 changed files with 42 additions and 16 deletions

View File

@@ -151,6 +151,10 @@ function Milo:xxx(item, count)
end
function Milo:provideItem(item, count, callback)
if count <= 0 then
return 0
end
local current = Milo:getItem(Milo:listItems(), item) or { count = 0 }
local toCraft = count - math.min(current.count, count)