summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-02 15:35:40 +0200
committerWuzzy <almikes@aol.com>2016-08-02 15:35:40 +0200
commit38aa84bd4fa9c2dddf7e37e7b08ede572f24a23d (patch)
tree74a50eba7e1f56927c42bd500535e0356fcf139c /init.lua
parent2b18e7d1d728ebd969165e81737c90a4a3cbeceb (diff)
Rename minetest_game table
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/init.lua b/init.lua
index 1a08eb4..22eab5a 100644
--- a/init.lua
+++ b/init.lua
@@ -504,22 +504,22 @@ doc.new_category("craftitems", {
end
})
-doc.sub.minetest_game = {}
-doc.sub.minetest_game.help = {}
-doc.sub.minetest_game.help.longdesc = {}
-doc.sub.minetest_game.help.usagehelp = {}
+doc.sub.items = {}
+doc.sub.items.help = {}
+doc.sub.items.help.longdesc = {}
+doc.sub.items.help.usagehelp = {}
-- Gather help texts
-function doc.sub.minetest_game.add_helptexts(longdesc, usagehelp)
+function doc.sub.items.add_helptexts(longdesc, usagehelp)
for k,v in pairs(longdesc) do
- doc.sub.minetest_game.help.longdesc[k] = v
+ doc.sub.items.help.longdesc[k] = v
end
for k,v in pairs(usagehelp) do
- doc.sub.minetest_game.help.usagehelp[k] = v
+ doc.sub.items.help.usagehelp[k] = v
end
end
local function gather_descs()
- local help = doc.sub.minetest_game.help
+ local help = doc.sub.items.help
doc.new_entry("nodes", "air", {
name = "Air",
data = {