]> git.lizzy.rs Git - xdecor.git/commitdiff
Craft guide : get rid of item_image_button label on output's stack
authorJean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com>
Tue, 9 Feb 2016 11:35:17 +0000 (12:35 +0100)
committerJean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com>
Tue, 9 Feb 2016 14:29:48 +0000 (15:29 +0100)
init.lua
worktable.lua

index 293a02762b8188649be0a06735f43646a92347cb..bab7b14b4d310cd7c1d99937ce2af943c7163677 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -18,5 +18,5 @@ dofile(modpath.."/rope.lua")
 dofile(modpath.."/sitting.lua")
 dofile(modpath.."/worktable.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))
 
index d3ea87331ac73e56cc6d678eb87c49b2f9106cbc..5aa70742c91a1e736c7c5c47bd608fb2aa02d904 100644 (file)
@@ -118,9 +118,9 @@ function worktable:craftguide_formspec(meta, pagenum, item, recipe_num, filter)
                        (math.floor((i-1) / width + (6 - math.min(2, rows))))..";1,1;"..
                        self:get_recipe(v)..";"..self:get_recipe(v)..";"..is_group(v).."]"
                end
-               
-               local yield = minetest.get_all_craft_recipes(item)[recipe_num].output:match("%s(%d+)") or ""
-               formspec = formspec.."item_image_button[2.5,5;1,1;"..item..";"..item..";\n\n\t\t\t\t"..yield.."]"..
+
+               local output = minetest.get_all_craft_recipes(item)[recipe_num].output
+               formspec = formspec.."item_image_button[2.5,5;1,1;"..output..";"..item..";]"..
                                     "image[3.5,5;1,1;gui_furnace_arrow_bg.png^[transformR90]"
        end
 
@@ -284,7 +284,6 @@ function worktable.take(_, listname, _, stack, player)
        return stack:get_count()
 end
 
-
 function worktable.move(_, _, _, to_list, _, count)
        if to_list == "storage" or to_list == "trash" then return count end
        return 0