From 5cfe6c8d4a64fde4be9ba97f6916823ff2aac63a Mon Sep 17 00:00:00 2001 From: KaadmY Date: Mon, 3 Jul 2017 08:09:05 -0700 Subject: [PATCH] Shim for a possible Minetest regression from 0.4.15 to 0.4.16 --- mods/crafting/api.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mods/crafting/api.lua b/mods/crafting/api.lua index 2e80af1..7c7ad46 100644 --- a/mods/crafting/api.lua +++ b/mods/crafting/api.lua @@ -390,7 +390,11 @@ local function on_player_receive_fields(player, form_name, fields) if inv:room_for_item("craft_out", crafted.output) then inv:set_stack("craft_out", 1, crafted.output) - inv:set_list("craft_in", crafted.items) + -- FIXME? inv:set_list worked in 0.4.15 but no longer works for some reason + inv:set_stack("craft_in", 1, crafted.items[1]) + inv:set_stack("craft_in", 2, crafted.items[2]) + inv:set_stack("craft_in", 3, crafted.items[3]) + inv:set_stack("craft_in", 4, crafted.items[4]) end end elseif fields.craft_list then