aboutsummaryrefslogtreecommitdiff
path: root/stairsplus/stairs.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-02-23 11:12:36 -0500
committerHugo Locurcio <hugo.l@openmailbox.org>2017-02-23 17:12:36 +0100
commite9c6cef4dd6090b561c55268114c832cd0ccfe0e (patch)
treef3b26bf17cc9b7017e83c58b00821d5698ff0ed8 /stairsplus/stairs.lua
parent5f35766ed06ed464c5f609cdb9d08fc564f92fe9 (diff)
downloadmoreblocks-e9c6cef4dd6090b561c55268114c832cd0ccfe0e.tar.gz
moreblocks-e9c6cef4dd6090b561c55268114c832cd0ccfe0e.tar.bz2
moreblocks-e9c6cef4dd6090b561c55268114c832cd0ccfe0e.zip
build a list of all of the stairsplus slab/stair/etc... shapes (#70)
for other mods to reference.
Diffstat (limited to 'stairsplus/stairs.lua')
-rw-r--r--stairsplus/stairs.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/stairsplus/stairs.lua b/stairsplus/stairs.lua
index 8dd29a0..0291e7d 100644
--- a/stairsplus/stairs.lua
+++ b/stairsplus/stairs.lua
@@ -105,6 +105,10 @@ local stairs_defs = {
},
}
+for k,v in pairs(stairs_defs) do
+ table.insert(stairsplus.shapes_list, { "stair_", k })
+end
+
function stairsplus:register_stair_alias(modname_old, subname_old, modname_new, subname_new)
local defs = stairsplus.copytable(stairs_defs)
for alternate, def in pairs(defs) do