summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-13 13:54:41 +0200
committerWuzzy <almikes@aol.com>2016-08-13 13:54:41 +0200
commitf6c0a12cbd6cfa521cb4d054e769e43825096122 (patch)
treed4660a48a700b7e18fcbfe4f2443eb9b0b3b65ad /init.lua
parentcccc6ce1c66a6e4b878cd4bb44bb1dfe0403c321 (diff)
Add aliases for xpanes
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 0270b33..975d071 100644
--- a/init.lua
+++ b/init.lua
@@ -157,6 +157,14 @@ doc.add_entry_alias("nodes", "doors:gate_pine_wood_closed", "doors:gate_pine_woo
doc.add_entry_alias("nodes", "doors:trapdoor", "doors:trapdoor_open")
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
+ 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)
-- Gather help texts
dofile(minetest.get_modpath("doc_minetest_game") .. "/helptexts.lua")