allow passing paramtype2 to the nodes being created (#65)

This commit is contained in:
Vanessa Ezekowitz
2017-01-26 16:11:45 -05:00
committed by Hugo Locurcio
parent 81f77ae97e
commit cf1b054a99
5 changed files with 5 additions and 5 deletions

View File

@ -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