1
0
mirror of https://github.com/Sokomine/cottages.git synced 2025-07-04 00:50:28 +02:00

if moreblocks is installed, don't register the three separate "roof"

items rather, alias them to the equivalents in moreblocks instead. don't
register cottages straw or wool anymore, alias them to farming straw and
white wool.
This commit is contained in:
Vanessa Ezekowitz
2017-02-23 10:13:05 -05:00
parent 9cee087886
commit 524de7d302
7 changed files with 19 additions and 31 deletions

View File

@ -61,7 +61,15 @@ dofile(minetest.get_modpath("cottages").."/nodes_straw.lua");
dofile(minetest.get_modpath("cottages").."/nodes_anvil.lua");
dofile(minetest.get_modpath("cottages").."/nodes_doorlike.lua");
dofile(minetest.get_modpath("cottages").."/nodes_fences.lua");
dofile(minetest.get_modpath("cottages").."/nodes_roof.lua");
if not minetest.get_modpath("moreblocks") then
dofile(minetest.get_modpath("cottages").."/nodes_roof.lua");
else
minetest.register_alias("cottages:roof_straw", "moreblocks:stair_straw_alt")
minetest.register_alias("cottages:roof_connector_straw", "moreblocks:stair_straw")
minetest.register_alias("cottages:roof_flat_straw", "moreblocks:slab_straw")
end
dofile(minetest.get_modpath("cottages").."/nodes_barrel.lua");
--dofile(minetest.get_modpath("cottages").."/nodes_chests.lua");