Add stairsplus support if moreblocks loaded.

This commit is contained in:
sys4-fr 2018-09-22 13:18:20 +02:00
parent 0d4a302103
commit b1fbfdfc14
2 changed files with 18 additions and 7 deletions

View File

@ -3,6 +3,7 @@ creative?
glow glow
riesenpilz riesenpilz
stairs stairs
moreblocks?
vector_extras vector_extras
fence_registration? fence_registration?
function_delayer? function_delayer?

View File

@ -11,13 +11,23 @@ local function add_more_nodes(name)
name = "nether_"..name name = "nether_"..name
end end
local data = minetest.registered_nodes[nd] local data = minetest.registered_nodes[nd]
stairs.register_stair_and_slab(name, nd, if stairsplus then
stairsplus:register_all(
"nether",
name,
nd,
data
)
else
stairs.register_stair_and_slab(
name, nd,
data.groups, data.groups,
data.tiles, data.tiles,
data.description.." Stair", data.description.." Stair",
data.description.." Slab", data.description.." Slab",
data.sounds data.sounds
) )
end
if add_fence then if add_fence then
add_fence({fence_of = nd}) add_fence({fence_of = nd})
end end