crafting fix
This commit is contained in:
@@ -309,7 +309,7 @@ function Craft.craftRecipeInternal(recipe, count, storage, origItem, path)
|
|||||||
local function maxBatch()
|
local function maxBatch()
|
||||||
local max = 64
|
local max = 64
|
||||||
for _, i in Craft.ingredients(recipe) do
|
for _, i in Craft.ingredients(recipe) do
|
||||||
max = math.min(max, math.floor(64 / i.count))
|
max = math.min(max, math.floor(itemDB:getMaxCount(i.key) / i.count))
|
||||||
end
|
end
|
||||||
return max
|
return max
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user