From c9b180116f8405a9f83da0730382add85ff410c0 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Mon, 22 Jul 2013 01:02:29 -0400 Subject: fix the check for technic for craft recipes, use optional depends to make sure it loads first --- crafts.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crafts.lua') diff --git a/crafts.lua b/crafts.lua index 462f760..d5670a1 100644 --- a/crafts.lua +++ b/crafts.lua @@ -174,8 +174,7 @@ end -- If the technic mod is present, then don't bother registering the recipes -- for the various tubes, as technic has its own recipes for those. -if io.open(minetest.get_modpath("pipeworks").."/../technic/init.lua", "r") == nil and - io.open(minetest.get_modpath("pipeworks").."/../technic_master/technic/init.lua", "r") == nil then +if not minetest.get_modpath("technic") then minetest.register_craft( { output = "pipeworks:tube 12", -- cgit v1.2.3