summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-12-12 20:56:48 +0100
committerWuzzy <almikes@aol.com>2016-12-12 20:56:48 +0100
commitb5a0c6decfcb65f1f038d5d44db5c06490dde294 (patch)
treed4946a07fe9cb6032ab90275d115d1db85c82697
parentf9b8a736c6597ba5b279ff60f2bee40544ba625e (diff)
Suppress ignore again
-rw-r--r--init.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 2ca7f26..077ee01 100644
--- a/init.lua
+++ b/init.lua
@@ -37,6 +37,9 @@ local item_name_overrides = {
[""] = S("Hand"),
["air"] = S("Air")
}
+local suppressed = {
+ ["ignore"] = true,
+}
-- Helper functions
local yesno = function(bool)
@@ -951,13 +954,16 @@ local function gather_descs()
else
help.longdesc["air"] = S("A transparent block, basically empty space. It is usually left behind after digging something.")
end
+ if minetest.registered_items["ignore"]._doc_items_create_entry ~= nil then
+ suppressed["ignore"] = minetest.registered_items["ignore"]._doc_items_create_entry == true
+ end
local add_entries = function(deftable, category_id)
-- TODO: Remove legacy support: Groups in_doc, not_in_doc; forced_items, help table, etc.
for id, def in pairs(deftable) do
local name, ld, uh, im
local forced = false
- if (def._doc_items_create_entry == true) and def ~= nil then forced = true end
+ if def._doc_items_create_entry == true and def ~= nil then forced = true end
if def._doc_items_entry_name ~= nil then
name = def._doc_items_entry_name
end
@@ -967,7 +973,7 @@ local function gather_descs()
if name == nil then
name = def.description
end
- if not (((def.description == nil or def.description == "") and def._doc_items_entry_name == nil) or def._doc_items_create_entry == false) or forced then
+ if not (((def.description == nil or def.description == "") and def._doc_items_entry_name == nil) or (def._doc_items_create_entry == false) or (suppressed[id] == true)) or forced then
if def._doc_items_longdesc then
ld = def._doc_items_longdesc
end