From b1fbfdfc145a15f5a180bcf0a1c14757042b7380 Mon Sep 17 00:00:00 2001 From: sys4-fr Date: Sat, 22 Sep 2018 13:18:20 +0200 Subject: [PATCH] Add stairsplus support if moreblocks loaded. --- nether/depends.txt | 1 + nether/items.lua | 24 +++++++++++++++++------- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/nether/depends.txt b/nether/depends.txt index e5a2f24..99f3a5f 100644 --- a/nether/depends.txt +++ b/nether/depends.txt @@ -3,6 +3,7 @@ creative? glow riesenpilz stairs +moreblocks? vector_extras fence_registration? function_delayer? diff --git a/nether/items.lua b/nether/items.lua index 6cf7eff..096528a 100644 --- a/nether/items.lua +++ b/nether/items.lua @@ -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