diff options
author | Louis Royer <55180044+louisroyer@users.noreply.github.com> | 2021-04-01 18:56:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-01 18:56:08 +0200 |
commit | f5c3f798be94cc95b93e5fe480f537dc41d6f350 (patch) | |
tree | 37843761ab8d5362d52509a803900e459a268f5c | |
parent | 69d4a9584d4d9e5ccd31a3c71464ba539f10d91d (diff) | |
download | mesecons-f5c3f798be94cc95b93e5fe480f537dc41d6f350.tar mesecons-f5c3f798be94cc95b93e5fe480f537dc41d6f350.tar.gz mesecons-f5c3f798be94cc95b93e5fe480f537dc41d6f350.tar.bz2 mesecons-f5c3f798be94cc95b93e5fe480f537dc41d6f350.tar.xz mesecons-f5c3f798be94cc95b93e5fe480f537dc41d6f350.zip |
Compatibility with mtg_craft_guide (#555)
Use group instead of wire when possible
Fixes https://github.com/minetest/minetest_game/issues/2843.
-rw-r--r-- | mesecons_extrawires/vertical.lua | 6 | ||||
-rw-r--r-- | mesecons_insulated/init.lua | 2 | ||||
-rw-r--r-- | 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, { |