milo: oops

This commit is contained in:
kepler155c@gmail.com
2019-06-28 08:47:31 -04:00
parent b5014729e7
commit d4e379af2e

View File

@@ -62,20 +62,20 @@ function craftTask:cycle()
self:craft(recipe, item)
if item.crafted >= item.requested then
item.status = 'crafted'
item.statusCode = Craft.STATUS_SUCCESS
if item.callback then
item.callback(item) -- invoke callback
end
end
else
item.status = '(no recipe)'
item.statusCode = Craft.STATUS_ERROR
item.crafted = 0
end
end
if item.crafted >= item.requested then
item.status = 'crafted'
item.statusCode = Craft.STATUS_SUCCESS
if item.callback then
item.callback(item) -- invoke callback
end
end
end
end