From 38aa84bd4fa9c2dddf7e37e7b08ede572f24a23d Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 2 Aug 2016 15:35:40 +0200 Subject: Rename minetest_game table --- init.lua | 16 ++++++++-------- 1 file 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 = { -- cgit v1.2.3