summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-12-28 15:43:07 +0100
committerWuzzy <almikes@aol.com>2016-12-28 15:43:07 +0100
commit1db28fffd4bf7897f5aa3a67a19e3c7300c077a7 (patch)
treee6d59e7f975bdaec0ea7af18919c5a984c6d0cb6
parent00dddcfe66b6b6f1cfbfb96118d8f15d4c484021 (diff)
add_entry/add_category
-rw-r--r--init.lua10
1 files changed, 5 insertions, 5 deletions
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