superTreefarm

This commit is contained in:
kepler155c@gmail.com
2018-12-21 19:48:40 -05:00
parent 12aebb0b88
commit fdf9c70338
4 changed files with 701 additions and 14 deletions

View File

@@ -206,7 +206,7 @@ function Craft.craftRecipeInternal(recipe, count, storage, origItem)
count = canCraft
end
_G._debug({'eval', recipe.result, count })
--_G._debug({'eval', recipe.result, count })
--local maxCount = math.floor((recipe.maxCount or 64) / recipe.count)
local maxCount = recipe.maxCount or math.floor(64 / recipe.count)
@@ -239,7 +239,7 @@ _G._debug({'eval', recipe.result, count })
while canCraft > 0 do
local batch = math.min(canCraft, maxCount)
local machine = Craft.machineLookup[recipe.result]
_G._debug({ 'crafting', recipe.result, batch })
--_G._debug({ 'crafting', recipe.result, batch })
if machine then
if not machineCraft(recipe, storage, machine, request, batch, origItem) then
break