summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-11-17 19:47:50 +0100
committerWuzzy <almikes@aol.com>2016-11-17 19:47:50 +0100
commitf280d7a3845c5d4d1b8db2c9b84de1895f4d88e0 (patch)
treef10f3cf6e4d1c40be172a26d3cad187e97f375da
parent23d025d8792a54ba9d7edda17c38bd30eb3eedea (diff)
Use new doc_items field format
-rw-r--r--helptexts.lua4
-rw-r--r--init.lua10
2 files changed, 7 insertions, 7 deletions
diff --git a/helptexts.lua b/helptexts.lua
index 9938f58..741d053 100644
--- a/helptexts.lua
+++ b/helptexts.lua
@@ -482,11 +482,11 @@ local export_generation = {
for itemstring, longdesc in pairs(export_longdesc) do
if minetest.registered_items[itemstring] ~= nil then
- minetest.override_item(itemstring, { x_doc_items_longdesc = longdesc } )
+ minetest.override_item(itemstring, { _doc_items_longdesc = longdesc } )
end
end
for itemstring, usagehelp in pairs(export_usagehelp) do
if minetest.registered_items[itemstring] ~= nil then
- minetest.override_item(itemstring, { x_doc_items_usagehelp = usagehelp} )
+ minetest.override_item(itemstring, { _doc_items_usagehelp = usagehelp} )
end
end
diff --git a/init.lua b/init.lua
index 0ecab84..3a5ea1c 100644
--- a/init.lua
+++ b/init.lua
@@ -122,29 +122,29 @@ doc.sub.items.add_notable_groups(miscgroups)
for i=1, #hidden_items do
local item = minetest.registered_items[hidden_items[i]]
if item then
- minetest.override_item(hidden_items[i], { x_doc_items_hidden = true } )
+ minetest.override_item(hidden_items[i], { _doc_items_hidden = true } )
end
end
for i=1, #forced_items do
local item = minetest.registered_items[forced_items[i]]
if item then
- minetest.override_item(forced_items[i], { x_doc_items_create_entry = true} )
+ minetest.override_item(forced_items[i], { _doc_items_create_entry = true} )
end
end
for i=1, #suppressed_items do
local item = minetest.registered_items[suppressed_items[i]]
if item then
- minetest.override_item(suppressed_items[i], { x_doc_items_create_entry = false} )
+ minetest.override_item(suppressed_items[i], { _doc_items_create_entry = false} )
end
end
for itemstring, data in pairs(item_name_overrides) do
if minetest.registered_items[itemstring] ~= nil then
- minetest.override_item(itemstring, { x_doc_items_entry_name = data} )
+ minetest.override_item(itemstring, { _doc_items_entry_name = data} )
end
end
for itemstring, data in pairs(image_overrides) do
if minetest.registered_items[itemstring] ~= nil then
- minetest.override_item(itemstring, { x_doc_items_image = data} )
+ minetest.override_item(itemstring, { _doc_items_image = data} )
end
end