Fix node rotation when source node is defined with place_param2 property setted to 0. (#123)

However, this fix disable the global world texture orientation for fixed nodes in minetest 0.5-dev
This commit is contained in:
sys4-fr 2018-08-21 19:10:41 +02:00
parent 5fc5fce74e
commit 21a5e4a58f
1 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@ stairsplus.register_single = function(category, alternate, info, modname, subnam
end
def.paramtype = "light"
def.paramtype2 = def.paramtype2 or "facedir"
def.place_param2 = nil
def.on_place = minetest.rotate_node
if category ~= "slab" then
def.description = S("%s " .. descriptions[category]):format(fields.description)
@ -58,4 +59,4 @@ stairsplus.register_single = function(category, alternate, info, modname, subnam
end
minetest.register_node(":" ..modname.. ":" .. category .. "_" .. subname .. alternate, def)
stairsplus.register_recipes(category, alternate, modname, subname, recipeitem)
end
end