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
riesenpilz
stairs
moreblocks?
vector_extras
fence_registration?
function_delayer?

View File

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