From e2ee22d579412930b031a7cabdacc3b2bb5114a1 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sat, 2 Oct 2021 08:18:49 +0100 Subject: [PATCH] fix stairsplus registration --- stairs.lua | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/stairs.lua b/stairs.lua index 9519e6f..784c596 100644 --- a/stairs.lua +++ b/stairs.lua @@ -16,13 +16,28 @@ local do_stair = function(description, name, node, groups, texture, sound) elseif stairs_plus then - stairsplus:register_all("ethereal", name, node, { + local mod = "ethereal" + + stairsplus:register_all(mod, name, node, { description = S(description), tiles = texture, groups = groups, sounds = sound, }) + -- aliases need to be set for previous stairs to avoid unknown nodes + minetest.register_alias_force("stairs:stair_" .. name, + mod .. ":stair_" .. name) + + minetest.register_alias_force("stairs:stair_outer_" .. name, + mod .. ":stair_" .. name .. "_outer") + + minetest.register_alias_force("stairs:stair_inner_" .. name, + mod .. ":stair_" .. name .. "_inner") + + minetest.register_alias_force("stairs:slab_" .. name, + mod .. ":slab_" .. name) + else stairs.register_stair_and_slab(name, node, groups, texture,