summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-04 00:07:32 +0200
committerWuzzy <almikes@aol.com>2016-08-04 00:10:26 +0200
commitd2e19cfc08d4e4204e80b3eed823d43adc84cb7f (patch)
tree42e40d55740fb561bcf9006f3c560500423b9851 /init.lua
parentcbb2562a58683d3f3fcff864661b295c1223f703 (diff)
Add not_in_doc group
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index 3efa974..58e31d0 100644
--- a/init.lua
+++ b/init.lua
@@ -670,6 +670,8 @@ local function gather_descs()
help.longdesc["air"] = "A transparent block, basically empty space. It is usually left behind after digging something."
end
+ -- NOTE: Mod introduces group “not_in_doc”: Nodes with this group will not have entries
+
-- Add node entries
for id, def in pairs(minetest.registered_nodes) do
local name, ld, uh
@@ -680,7 +682,7 @@ local function gather_descs()
else
name = def.description
end
- if not (name == nil or name == "" or def.groups.not_in_creative_inventory) or forced then
+ if not (name == nil or name == "" or def.groups.not_in_creative_inventory or def.groups.not_in_doc) or forced then
if help.longdesc[id] ~= nil then
ld = help.longdesc[id]
end
@@ -725,7 +727,7 @@ local function gather_descs()
else
name = def.description
end
- if not (name == nil or name == "" or def.groups.not_in_creative_inventory) or forced then
+ if not (name == nil or name == "" or def.groups.not_in_creative_inventory or def.groups.not_in_doc) or forced then
if help.longdesc[id] ~= nil then
ld = help.longdesc[id]
end
@@ -756,7 +758,7 @@ local function gather_descs()
else
name = def.description
end
- if not (name == nil or name == "" or def.groups.not_in_creative_inventory) or forced then
+ if not (name == nil or name == "" or def.groups.not_in_creative_inventory or def.groups.not_in_doc) or forced then
if help.longdesc[id] ~= nil then
ld = help.longdesc[id]
end