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:
parent
5fc5fce74e
commit
21a5e4a58f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue