1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 00:20:17 +01:00

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

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( stairsplus:register_all(
"building_blocks", "building_blocks",
"tar", "tar",
@ -343,6 +353,7 @@ if minetest.get_modpath("moreblocks") then
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
} }
) )
stairsplus:register_all( stairsplus:register_all(
"building_blocks", "building_blocks",
"grate", "grate",