From f5c3f798be94cc95b93e5fe480f537dc41d6f350 Mon Sep 17 00:00:00 2001 From: Louis Royer <55180044+louisroyer@users.noreply.github.com> Date: Thu, 1 Apr 2021 18:56:08 +0200 Subject: [PATCH] Compatibility with mtg_craft_guide (#555) Use group instead of wire when possible Fixes https://github.com/minetest/minetest_game/issues/2843. --- mesecons_extrawires/vertical.lua | 6 +++--- mesecons_insulated/init.lua | 2 +- mesecons_wires/init.lua | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/mesecons_extrawires/vertical.lua b/mesecons_extrawires/vertical.lua index 1543194..52f2b6a 100644 --- a/mesecons_extrawires/vertical.lua +++ b/mesecons_extrawires/vertical.lua @@ -175,9 +175,9 @@ mesecon.register_node("mesecons_extrawires:vertical_bottom", { minetest.register_craft({ output = "mesecons_extrawires:vertical_off 3", recipe = { - {"mesecons:wire_00000000_off"}, - {"mesecons:wire_00000000_off"}, - {"mesecons:wire_00000000_off"} + {"group:mesecon_conductor_craftable"}, + {"group:mesecon_conductor_craftable"}, + {"group:mesecon_conductor_craftable"}, } }) diff --git a/mesecons_insulated/init.lua b/mesecons_insulated/init.lua index ca55b9a..1a4cc88 100644 --- a/mesecons_insulated/init.lua +++ b/mesecons_insulated/init.lua @@ -86,7 +86,7 @@ minetest.register_craft({ output = "mesecons_insulated:insulated_off 3", recipe = { {"mesecons_materials:fiber", "mesecons_materials:fiber", "mesecons_materials:fiber"}, - {"mesecons:wire_00000000_off", "mesecons:wire_00000000_off", "mesecons:wire_00000000_off"}, + {"group:mesecon_conductor_craftable", "group:mesecon_conductor_craftable", "group:mesecon_conductor_craftable"}, {"mesecons_materials:fiber", "mesecons_materials:fiber", "mesecons_materials:fiber"}, } }) diff --git a/mesecons_wires/init.lua b/mesecons_wires/init.lua index 3ca9cbc..20e6adb 100644 --- a/mesecons_wires/init.lua +++ b/mesecons_wires/init.lua @@ -195,10 +195,11 @@ local function register_wires() }} local groups_on = {dig_immediate = 3, mesecon_conductor_craftable = 1, - not_in_creative_inventory = 1} + not_in_creative_inventory = 1, not_in_craft_guide = 1} local groups_off = {dig_immediate = 3, mesecon_conductor_craftable = 1} if nodeid ~= "00000000" then groups_off["not_in_creative_inventory"] = 1 + groups_off["not_in_craft_guide"] = 1 end mesecon.register_node(":mesecons:wire_"..nodeid, {