From 1ca2cefc4d01b757abd1033412fef25bc54d3b6b Mon Sep 17 00:00:00 2001 From: qwrwed Date: Tue, 15 Aug 2017 21:31:41 +0100 Subject: 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. --- init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.lua b/init.lua index 7147301..0a2bfec 100644 --- a/init.lua +++ b/init.lua @@ -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", -- cgit v1.2.3