From 9f46908cfcd6150cc13e0fde6135a6410760d441 Mon Sep 17 00:00:00 2001 From: jp Date: Mon, 30 Nov 2015 00:33:19 +0100 Subject: [PATCH] Craft guide : minimal support for cooking recipes --- worktable.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worktable.lua b/worktable.lua index 275c228..1ffd614 100644 --- a/worktable.lua +++ b/worktable.lua @@ -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)