diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-01-26 16:11:45 -0500 |
---|---|---|
committer | Hugo Locurcio <hugo.l@openmailbox.org> | 2017-01-26 22:11:45 +0100 |
commit | cf1b054a998a67b06e97c2e022537bf8516abdfb (patch) | |
tree | 10f821e2350e5db78c086df18151377b377f8539 | |
parent | 81f77ae97e7886982f958e12cc873037058fff52 (diff) | |
download | moreblocks-cf1b054a998a67b06e97c2e022537bf8516abdfb.tar.gz moreblocks-cf1b054a998a67b06e97c2e022537bf8516abdfb.tar.bz2 moreblocks-cf1b054a998a67b06e97c2e022537bf8516abdfb.zip |
allow passing paramtype2 to the nodes being created (#65)
-rw-r--r-- | stairsplus/microblocks.lua | 2 | ||||
-rw-r--r-- | stairsplus/panels.lua | 2 | ||||
-rw-r--r-- | stairsplus/slabs.lua | 2 | ||||
-rw-r--r-- | stairsplus/slopes.lua | 2 | ||||
-rw-r--r-- | stairsplus/stairs.lua | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/stairsplus/microblocks.lua b/stairsplus/microblocks.lua index 6271e27..a3b94d3 100644 --- a/stairsplus/microblocks.lua +++ b/stairsplus/microblocks.lua @@ -88,7 +88,7 @@ function stairsplus:register_micro(modname, subname, recipeitem, fields) end def.drawtype = "nodebox" def.paramtype = "light" - def.paramtype2 = "facedir" + def.paramtype2 = def.paramtype2 or "facedir" def.on_place = minetest.rotate_node def.groups = stairsplus:prepare_groups(fields.groups) def.description = desc diff --git a/stairsplus/panels.lua b/stairsplus/panels.lua index df4e2bf..66e736d 100644 --- a/stairsplus/panels.lua +++ b/stairsplus/panels.lua @@ -88,7 +88,7 @@ function stairsplus:register_panel(modname, subname, recipeitem, fields) end def.drawtype = "nodebox" def.paramtype = "light" - def.paramtype2 = "facedir" + def.paramtype2 = def.paramtype2 or "facedir" def.on_place = minetest.rotate_node def.description = desc def.groups = stairsplus:prepare_groups(fields.groups) diff --git a/stairsplus/slabs.lua b/stairsplus/slabs.lua index 53bfa57..9fa2494 100644 --- a/stairsplus/slabs.lua +++ b/stairsplus/slabs.lua @@ -59,7 +59,7 @@ function stairsplus:register_slab(modname, subname, recipeitem, fields) end def.drawtype = "nodebox" def.paramtype = "light" - def.paramtype2 = "facedir" + def.paramtype2 = def.paramtype2 or "facedir" def.on_place = minetest.rotate_node def.description = ("%s (%d/16)"):format(desc_base, num) def.groups = stairsplus:prepare_groups(fields.groups) diff --git a/stairsplus/slopes.lua b/stairsplus/slopes.lua index 66fa6f5..1868cb3 100644 --- a/stairsplus/slopes.lua +++ b/stairsplus/slopes.lua @@ -242,7 +242,7 @@ function stairsplus:register_slope(modname, subname, recipeitem, fields) end def.drawtype = "mesh" def.paramtype = "light" - def.paramtype2 = "facedir" + def.paramtype2 = def.paramtype2 or "facedir" def.on_place = minetest.rotate_node def.description = desc def.groups = stairsplus:prepare_groups(fields.groups) diff --git a/stairsplus/stairs.lua b/stairsplus/stairs.lua index 6609466..fc47dbd 100644 --- a/stairsplus/stairs.lua +++ b/stairsplus/stairs.lua @@ -128,7 +128,7 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields) end def.drawtype = "nodebox" def.paramtype = "light" - def.paramtype2 = "facedir" + def.paramtype2 = def.paramtype2 or "facedir" def.on_place = minetest.rotate_node def.description = desc def.groups = stairsplus:prepare_groups(fields.groups) |