summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-01 04:52:56 +0200
committerWuzzy <almikes@aol.com>2016-08-01 04:52:56 +0200
commit5de05d49b400cea421af227dbe6ce1e29b9904e1 (patch)
tree615f3c4c819c81bc98a4c6e3fb8ec482f9b977ac
parent5fdcb975247aea34e00eeb4865f6176c41d16487 (diff)
Hide max stack size for hand
-rw-r--r--init.lua4
1 files changed, 3 insertions, 1 deletions
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"