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
|
glow
|
||||||
riesenpilz
|
riesenpilz
|
||||||
stairs
|
stairs
|
||||||
|
moreblocks?
|
||||||
vector_extras
|
vector_extras
|
||||||
fence_registration?
|
fence_registration?
|
||||||
function_delayer?
|
function_delayer?
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user