fix stairsplus registration
This commit is contained in:
parent
9b586feca1
commit
e2ee22d579
17
stairs.lua
17
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user