From 002d9742848468cf258f60a2a0eed643ec153b64 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 2 Nov 2016 01:23:24 +0100 Subject: [PATCH] Use new doc_items desc format --- init.lua | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/init.lua b/init.lua index 3858fe9..22ea3be 100644 --- a/init.lua +++ b/init.lua @@ -30,6 +30,8 @@ ltool.default_edit_fields = { --[[ This registers the sapling for planting the trees ]] minetest.register_node("ltool:sapling", { description = "Custom L-system tree sapling", + x_doc_items_longdesc = "This artificial sapling does not come from nature and contains the genome of a genetically engineered L-system tree. Every sapling of this kind is unique. Who knows what might grow from it when you plant it?", + x_doc_items_usagehelp = "Place the sapling on any floor and wait 5 seconds for the tree to appear. To create your own saplings, you need to have the “lplant” privilege and pick a tree from the L-System Tree Utility (accessed with the server command “treeform”).", stack_max = 1, drawtype = "plantlike", tiles = { "ltool_sapling.png" }, @@ -1273,11 +1275,3 @@ if minetest.get_modpath("unified_inventory") ~= nil then }) end -if minetest.get_modpath("doc_items") ~= nil then - doc.sub.items.set_items_longdesc({ - ["ltool:sapling"] = "This artificial sapling does not come from nature and contains the genome of a genetically engineered L-system tree. Every sapling of this kind is unique. Who knows what might grow from it when you plant it?", - }) - doc.sub.items.set_items_usagehelp({ - ["ltool:sapling"] = "Place the sapling on any floor and wait 5 seconds for the tree to appear. To create your own saplings, you need to have the “lplant” privilege and pick a tree from the L-System Tree Utility (accessed with the server command “treeform”)." - }) -end