From cf1b054a998a67b06e97c2e022537bf8516abdfb Mon Sep 17 00:00:00 2001
From: Vanessa Ezekowitz <vanessaezekowitz@gmail.com>
Date: Thu, 26 Jan 2017 16:11:45 -0500
Subject: [PATCH] allow passing paramtype2 to the nodes being created (#65)

---
 stairsplus/microblocks.lua | 2 +-
 stairsplus/panels.lua      | 2 +-
 stairsplus/slabs.lua       | 2 +-
 stairsplus/slopes.lua      | 2 +-
 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)