summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"