diff --git a/mods/craftguide/init.lua b/mods/craftguide/init.lua index d1b07c4b1e..4d019e4a03 100644 --- a/mods/craftguide/init.lua +++ b/mods/craftguide/init.lua @@ -100,21 +100,29 @@ function craftguide:get_recipe(iY, xoffset, tooltip, item, recipe_num, recipes) recipe_num.." of "..recipes_total.."]" end local recipe_type = recipes[recipe_num].type - if recipe_type == "cooking" then - formspec = formspec.. - "image["..(xoffset-0.8)..","..(iY+1).. - ".5;0.5,0.5;craftguide_furnace.png]" - end local items = recipes[recipe_num].items local width = recipes[recipe_num].width - if width == 0 then + local is_shapeless = false + if recipe_type == "normal" and width == 0 then + is_shapeless = true if #items <= 4 then width = 2 else width = min(3, #items) end end + + if recipe_type == "cooking" then + formspec = formspec.. + "image["..(xoffset-0.8)..","..(iY+1).. + ".5;0.5,0.5;default_furnace_front_active.png]" + elseif is_shapeless then + formspec = formspec.. + "image["..(xoffset-0.8)..","..(iY+1).. + ".5;0.5,0.5;craftguide_shapeless.png]" + end + local rows = ceil(maxn(items) / width) local btn_size, craftgrid_limit = 1, 5 diff --git a/mods/craftguide/textures/craftguide_furnace.png b/mods/craftguide/textures/craftguide_furnace.png deleted file mode 100644 index 4c12e506cc..0000000000 Binary files a/mods/craftguide/textures/craftguide_furnace.png and /dev/null differ diff --git a/mods/craftguide/textures/craftguide_shapeless.png b/mods/craftguide/textures/craftguide_shapeless.png new file mode 100644 index 0000000000..511652fd0d Binary files /dev/null and b/mods/craftguide/textures/craftguide_shapeless.png differ