Craft guide : minimal support for cooking recipes

This commit is contained in:
jp 2015-11-30 00:33:19 +01:00
parent 21c10393c0
commit 9f46908cfc

View File

@ -359,13 +359,14 @@ function worktable.move(pos, from_list, from_index, to_list, to_index, count, _)
def = "default:"..def:sub(7, string.len(def))
end
end
if stack_type == "cooking" then
inv:set_stack("craft_output_recipe", 5, def)
else
inv:set_stack("craft_output_recipe", k, def)
end
end
elseif stack_type == "cooking" then
inv:set_stack("craft_output_recipe", 5, craft[1])
end
worktable.craft_output_recipe(pos, start_i, start_i / (8*4) + 1, stackname)