From 5de05d49b400cea421af227dbe6ce1e29b9904e1 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 1 Aug 2016 04:52:56 +0200 Subject: Hide max stack size for hand --- init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index c646d31..ea74d5c 100644 --- a/init.lua +++ b/init.lua @@ -476,7 +476,9 @@ doc.new_category("tools", { if usagehelp ~= nil then formstring = formstring .. "Usage help: "..minetest.formspec_escape(usagehelp).. "\n\n" end - formstring = formstring .. "Maximum stack size: "..data.def.stack_max.. "\n" + if data.itemstring ~= "" then + formstring = formstring .. "Maximum stack size: "..data.def.stack_max.. "\n" + end local yesno = function(bool) if bool==true then return "Yes" -- cgit v1.2.3