diff options
author | Wuzzy <almikes@aol.com> | 2016-08-28 17:15:14 +0200 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-08-28 17:15:14 +0200 |
commit | 9d667e74b6592aa9d4793e1e4249778250b4a945 (patch) | |
tree | ab4cec65acc7fabefacac548e73869d02a4aacf6 /init.lua | |
parent | dd1a3212e0804faa35a8e499042e7efb60081d5a (diff) |
Fix incorrect xpanes factoids
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -45,6 +45,8 @@ local forced_items = { "doors:door_steel_a", "doors:door_glass_a", "doors:door_obsidian_glass_a", + "xpanes:pane_1", + "xpanes:bar_1", } local suppressed_items = { @@ -52,6 +54,8 @@ local suppressed_items = { "doors:door_steel", "doors:door_glass", "doors:door_obsidian_glass", + "xpanes:pane", + "xpanes:bar", } local item_name_overrides = { @@ -66,6 +70,8 @@ local item_name_overrides = { ["doors:door_steel_a"] = minetest.registered_items["doors:door_steel"].description, ["doors:door_glass_a"] = minetest.registered_items["doors:door_glass"].description, ["doors:door_obsidian_glass_a"] = minetest.registered_items["doors:door_obsidian_glass"].description, + ["xpanes:pane_1"] = minetest.registered_items["xpanes:pane"].description, + ["xpanes:bar_1"] = minetest.registered_items["xpanes:bar"].description, } local image_overrides = { @@ -73,6 +79,8 @@ local image_overrides = { ["doors:door_steel_a"] = minetest.registered_items["doors:door_steel"].inventory_image, ["doors:door_glass_a"] = minetest.registered_items["doors:door_glass"].inventory_image, ["doors:door_obsidian_glass_a"] = minetest.registered_items["doors:door_obsidian_glass"].inventory_image, + ["xpanes:pane_1"] = minetest.registered_items["xpanes:pane"].inventory_image, + ["xpanes:bar_1"] = minetest.registered_items["xpanes:bar"].inventory_image, } doc.sub.items.add_real_group_names(groupdefs) @@ -193,12 +201,14 @@ doc.add_entry_alias("nodes", "doors:trapdoor_steel", "doors:trapdoor_steel_open" doc.add_entry_alias("nodes", "tnt:tnt", "tnt:tnt_burning") local pane_aliases = {} local bar_aliases = {} -for i=1,15 do +for i=2,15 do table.insert(pane_aliases, "xpanes:pane_"..i) table.insert(bar_aliases, "xpanes:bar_"..i) end -doc.add_entry_aliases("nodes", "xpanes:pane", pane_aliases) -doc.add_entry_aliases("nodes", "xpanes:bar", bar_aliases) +table.insert(pane_aliases, "xpanes:pane") +table.insert(bar_aliases, "xpanes:bar") +doc.add_entry_aliases("nodes", "xpanes:pane_1", pane_aliases) +doc.add_entry_aliases("nodes", "xpanes:bar_1", bar_aliases) -- Gather help texts dofile(minetest.get_modpath("doc_minetest_game") .. "/helptexts.lua") |