From 4eff124ec8572046a81e5be10eb6e4dacd6e531b Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 29 Jan 2015 22:47:33 +0100 Subject: fix crafts to only register when their respective tubes are enabled also add the one-way tube recipe back --- sorting_tubes.lua | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'sorting_tubes.lua') diff --git a/sorting_tubes.lua b/sorting_tubes.lua index 933ecf2..92e9446 100644 --- a/sorting_tubes.lua +++ b/sorting_tubes.lua @@ -110,25 +110,25 @@ if pipeworks.enable_mese_tube then return 0 end, }, true) -- Must use old tubes, since the textures are rotated with 6d ones -end -minetest.register_craft( { - output = "pipeworks:mese_tube_1 2", - recipe = { - { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }, - { "", "default:mese_crystal", "" }, - { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" } - }, -}) + minetest.register_craft( { + output = "pipeworks:mese_tube_1 2", + recipe = { + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }, + { "", "default:mese_crystal", "" }, + { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" } + }, + }) -minetest.register_craft( { - type = "shapeless", - output = "pipeworks:mese_tube_000000", - recipe = { - "pipeworks:tube_1", - "default:mese_crystal_fragment", - "default:mese_crystal_fragment", - "default:mese_crystal_fragment", - "default:mese_crystal_fragment" - }, -}) + minetest.register_craft( { + type = "shapeless", + output = "pipeworks:mese_tube_000000", + recipe = { + "pipeworks:tube_1", + "default:mese_crystal_fragment", + "default:mese_crystal_fragment", + "default:mese_crystal_fragment", + "default:mese_crystal_fragment" + }, + }) +end -- cgit v1.2.3