Add alias to prevent insulated wire craft conflicts (#1)

Several items are unregistered, including "mesecons_insulated:insulated_off". However, their crafting recipes are not unregistered, causing a conflict (the recipe now produces "Unknown Item"). Aliasing them fixes the craft recipe and retains compatibility with other mods that use the items.
master
qwrwed 2017-08-15 21:31:41 +01:00 committed by cheapie
parent f2a155ccef
commit 1ca2cefc4d
1 changed files with 4 additions and 0 deletions

View File

@ -55,6 +55,10 @@ minetest.unregister_item("mesecons_extrawires:corner_on")
minetest.unregister_item("mesecons_extrawires:tjunction_off")
minetest.unregister_item("mesecons_extrawires:tjunction_on")
minetest.register_alias("mesecons_insulated:insulated_off", "mesecons_insulated:insulated_grey_off")
minetest.register_alias("mesecons_extrawires:corner_off", "mesecons_extrawires:insulated_corner_grey_off")
minetest.register_alias("mesecons_extrawires:tjunction_off", "mesecons_extrawires:insulated_tjunction_grey_off")
for _,color in pairs(hues) do
mesecon.register_node(":mesecons_insulated:insulated_"..color, {
drawtype = "nodebox",