building_blocks: if moreblocks is installed, un-register the tar therein

and replace it with the building_blocks version.  Depends on moreblocks
pull request #70
This commit is contained in:
Vanessa Ezekowitz 2017-02-23 10:25:08 -05:00
parent f6173b036c
commit 43f7056142
1 changed files with 11 additions and 0 deletions

View File

@ -332,6 +332,16 @@ if minetest.get_modpath("moreblocks") then
}),
}
)
for _, i in ipairs(stairsplus.shapes_list) do
local class = i[1]
local cut = i[2]
minetest.unregister_item("moreblocks:"..class.."tar"..cut)
minetest.register_alias("moreblocks:"..class.."tar"..cut, "building_blocks:"..class.."tar"..cut)
end
minetest.unregister_item("moreblocks:tar")
stairsplus:register_all(
"building_blocks",
"tar",
@ -343,6 +353,7 @@ if minetest.get_modpath("moreblocks") then
sounds = default.node_sound_stone_defaults(),
}
)
stairsplus:register_all(
"building_blocks",
"grate",