Add TA4 recycle machine
This commit is contained in:
parent
c4e381687d
commit
dfc49e127b
@ -127,9 +127,7 @@ end
|
|||||||
local function get_recipe(stack)
|
local function get_recipe(stack)
|
||||||
local name = stack:get_name()
|
local name = stack:get_name()
|
||||||
local recipe = Recipes[name]
|
local recipe = Recipes[name]
|
||||||
print("get_recipe", name, dump(recipe))
|
|
||||||
if recipe then
|
if recipe then
|
||||||
print("get_recipe", stack:get_count(), ItemStack(recipe.output):get_count())
|
|
||||||
if stack:get_count() >= ItemStack(recipe.output):get_count() then
|
if stack:get_count() >= ItemStack(recipe.output):get_count() then
|
||||||
return recipe
|
return recipe
|
||||||
end
|
end
|
||||||
@ -331,7 +329,7 @@ local function collect_recipes()
|
|||||||
and recipe.output
|
and recipe.output
|
||||||
and next(items) then
|
and next(items) then
|
||||||
local s = table.concat(items, ", ")
|
local s = table.concat(items, ", ")
|
||||||
print(string.format("%-36s {%s}", recipe.output, s))
|
--print(string.format("%-36s {%s}", recipe.output, s))
|
||||||
Recipes[name] = {output = recipe.output, items = items}
|
Recipes[name] = {output = recipe.output, items = items}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user