summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-12-28 15:42:04 +0100
committerWuzzy <almikes@aol.com>2016-12-28 15:42:04 +0100
commit0f15cf4e07f71402678fa450e80076cb223cc374 (patch)
treef4a89967dbbf436cde625a4c54416ad79ed412f3 /init.lua
parentc57e5c05585d989759726a8bf1182df0c5d5e307 (diff)
new_entry/new_category → add_entry/add_category
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)