summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index 2868ea6..75c4191 100644
--- a/init.lua
+++ b/init.lua
@@ -76,7 +76,7 @@ local set_category_order_was_called = false
--[[ Core API functions ]]
-- Add a new category
-function doc.new_category(id, def)
+function doc.add_category(id, def)
if doc.data.categories[id] == nil and id ~= nil then
doc.data.categories[id] = {}
doc.data.categories[id].entries = {}
@@ -106,7 +106,7 @@ function doc.new_category(id, def)
end
-- Add a new entry
-function doc.new_entry(category_id, entry_id, def)
+function doc.add_entry(category_id, entry_id, def)
local cat = doc.data.categories[category_id]
if cat ~= nil then
local hidden = def.hidden or (def.hidden == nil and cat.def.hide_entries_by_default)
@@ -434,7 +434,7 @@ function doc.get_selection(playername)
end
end
--- Template function templates, to be used for build_formspec in doc.new_category
+-- Template function templates, to be used for build_formspec in doc.add_category
doc.entry_builders = {}
-- Inserts line breaks into a single paragraph and collapses all whitespace (including newlines)