1
0
Fork 0

Add stair/slab aliases for compability with 0.21.0

This commit is contained in:
Wuzzy 2017-06-05 19:21:14 +02:00
parent a7f5413e9d
commit 5bf17dda64
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,20 @@
-- Aliases for backwards-compability with 0.21.0
local materials = {
"wood", "junglewood", "sprucewood", "acaciawood", "birchwood", "darkwood",
"cobble", "brick_block", "sandstone", "redsandstone", "stonebrick",
"quartzblock", "purpur_block", "nether_brick"
}
for m=1, #materials do
local mat = materials[m]
minetest.register_alias("stairs:slab_"..mat, "mcl_stairs:slab_"..mat)
minetest.register_alias("stairs:stair_"..mat, "mcl_stairs:stair_"..mat)
-- mcstair
minetest.register_alias("stairs:stair_"..mat.."_inner", "mcl_stairs:stair_"..mat.."_inner")
minetest.register_alias("stairs:stair_"..mat.."_outer", "mcl_stairs:stair_"..mat.."_outer")
end
minetest.register_alias("stairs:slab_stone", "mcl_stairs:slab_stone")
minetest.register_alias("stairs:slab_stone_double", "mcl_stairs:slab_stone_double")

View File

@ -10,3 +10,4 @@ mcl_stairs = {}
dofile(minetest.get_modpath("mcl_stairs").."/api.lua") dofile(minetest.get_modpath("mcl_stairs").."/api.lua")
dofile(minetest.get_modpath("mcl_stairs").."/register.lua") dofile(minetest.get_modpath("mcl_stairs").."/register.lua")
dofile(minetest.get_modpath("mcl_stairs").."/crafting.lua") dofile(minetest.get_modpath("mcl_stairs").."/crafting.lua")
dofile(minetest.get_modpath("mcl_stairs").."/alias.lua")