From 740ad418cbe3f6680587c14c5d8dee43c3b28ce3 Mon Sep 17 00:00:00 2001 From: kaadmy Date: Mon, 14 Nov 2016 08:56:17 -0800 Subject: [PATCH] Use item description instead of the itemstring in the craft guide; fixes #27 --- mods/craftingguide/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/craftingguide/init.lua b/mods/craftingguide/init.lua index 093e3ca..8460052 100644 --- a/mods/craftingguide/init.lua +++ b/mods/craftingguide/init.lua @@ -21,7 +21,7 @@ function craftingguide.get_formspec(name) form = form .. "label[0.41,1.74;"..user.itemno.."/"..#craftingguide.items[user.item].."]" -- itemno form = form .. "label[3.9,8.15;"..page.."/"..max_pages.."]" -- page - form = form .. "label[4.4,2.5;"..user.item.."]" -- itemname + form = form .. "label[4.4,2.5;"..minetest.formspec_escape(minetest.registered_items[user.item].description).."]" -- itemname local method = craftingguide.items[user.item][user.itemno].type if method == "normal" or method == "crafting" then