forked from mtcontrib/nether-pack
Add stairsplus support if moreblocks loaded.
This commit is contained in:
parent
0d4a302103
commit
b1fbfdfc14
@ -3,6 +3,7 @@ creative?
|
||||
glow
|
||||
riesenpilz
|
||||
stairs
|
||||
moreblocks?
|
||||
vector_extras
|
||||
fence_registration?
|
||||
function_delayer?
|
||||
|
@ -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,
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user