From 1db28fffd4bf7897f5aa3a67a19e3c7300c077a7 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 28 Dec 2016 15:43:07 +0100 Subject: add_entry/add_category --- init.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index ad0f19e..79ae074 100644 --- a/init.lua +++ b/init.lua @@ -474,7 +474,7 @@ function doc.sub.items.register_factoid(category_id, factoid_type, factoid_gener end end -doc.new_category("nodes", { +doc.add_category("nodes", { hide_entries_by_default = true, name = S("Blocks"), description = S("Item reference of blocks and other things which are capable of occupying space"), @@ -912,7 +912,7 @@ doc.new_category("nodes", { end }) -doc.new_category("tools", { +doc.add_category("tools", { hide_entries_by_default = true, name = S("Tools and weapons"), description = S("Item reference of all wieldable tools and weapons"), @@ -1033,7 +1033,7 @@ doc.new_category("tools", { end }) -doc.new_category("craftitems", { +doc.add_category("craftitems", { hide_entries_by_default = true, name = S("Miscellaneous items"), description = S("Item reference of items which are neither blocks, tools or weapons (esp. crafting items)"), @@ -1149,7 +1149,7 @@ local function gather_descs() if handdef._doc_items_entry_name then item_name_overrides[""] = handdef._doc_items_entry_name end - doc.new_entry("tools", "", { + doc.add_entry("tools", "", { name = item_name_overrides[""], hidden = handdef._doc_items_hidden == true, data = { @@ -1201,7 +1201,7 @@ local function gather_descs() def = def, } } - doc.new_entry(category_id, id, infotable) + doc.add_entry(category_id, id, infotable) end end end -- cgit v1.2.3