Craft guide : get rid of item_image_button label on output's stack

This commit is contained in:
Jean-Patrick Guerrero 2016-02-09 12:35:17 +01:00
parent 8fea486347
commit 316af94a51
2 changed files with 4 additions and 5 deletions

View File

@ -18,5 +18,5 @@ dofile(modpath.."/rope.lua")
dofile(modpath.."/sitting.lua") dofile(modpath.."/sitting.lua")
dofile(modpath.."/worktable.lua") dofile(modpath.."/worktable.lua")
dofile(modpath.."/xwall.lua") dofile(modpath.."/xwall.lua")
--print(string.format("xdecor loaded in %.2f ms", (os.clock()-t)*1000)) --print(string.format("[xdecor] loaded in %.2f ms", (os.clock()-t)*1000))

View File

@ -119,8 +119,8 @@ function worktable:craftguide_formspec(meta, pagenum, item, recipe_num, filter)
self:get_recipe(v)..";"..self:get_recipe(v)..";"..is_group(v).."]" self:get_recipe(v)..";"..self:get_recipe(v)..";"..is_group(v).."]"
end end
local yield = minetest.get_all_craft_recipes(item)[recipe_num].output:match("%s(%d+)") or "" local output = minetest.get_all_craft_recipes(item)[recipe_num].output
formspec = formspec.."item_image_button[2.5,5;1,1;"..item..";"..item..";\n\n\t\t\t\t"..yield.."]".. formspec = formspec.."item_image_button[2.5,5;1,1;"..output..";"..item..";]"..
"image[3.5,5;1,1;gui_furnace_arrow_bg.png^[transformR90]" "image[3.5,5;1,1;gui_furnace_arrow_bg.png^[transformR90]"
end end
@ -284,7 +284,6 @@ function worktable.take(_, listname, _, stack, player)
return stack:get_count() return stack:get_count()
end end
function worktable.move(_, _, _, to_list, _, count) function worktable.move(_, _, _, to_list, _, count)
if to_list == "storage" or to_list == "trash" then return count end if to_list == "storage" or to_list == "trash" then return count end
return 0 return 0