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
|
end
|
||||||
def.paramtype = "light"
|
def.paramtype = "light"
|
||||||
def.paramtype2 = def.paramtype2 or "facedir"
|
def.paramtype2 = def.paramtype2 or "facedir"
|
||||||
|
def.place_param2 = nil
|
||||||
def.on_place = minetest.rotate_node
|
def.on_place = minetest.rotate_node
|
||||||
if category ~= "slab" then
|
if category ~= "slab" then
|
||||||
def.description = S("%s " .. descriptions[category]):format(fields.description)
|
def.description = S("%s " .. descriptions[category]):format(fields.description)
|
||||||
|
@ -58,4 +59,4 @@ stairsplus.register_single = function(category, alternate, info, modname, subnam
|
||||||
end
|
end
|
||||||
minetest.register_node(":" ..modname.. ":" .. category .. "_" .. subname .. alternate, def)
|
minetest.register_node(":" ..modname.. ":" .. category .. "_" .. subname .. alternate, def)
|
||||||
stairsplus.register_recipes(category, alternate, modname, subname, recipeitem)
|
stairsplus.register_recipes(category, alternate, modname, subname, recipeitem)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue