fix the check for technic for craft recipes, use optional depends to
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Mon, 22 Jul 2013 05:02:29 +0000 (01:02 -0400)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Mon, 22 Jul 2013 05:02:29 +0000 (01:02 -0400)
make sure it loads first

crafts.lua
depends.txt

index 462f760f6312c6cf09608eb8eef45d84029709f2..d5670a1917e243dc11265d7677a65c9f240b7794 100644 (file)
@@ -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",
index 1b3c7979f09b3405f66c5781dbbac60b570b4887..a7d94a543126706a50d5a65b1398580fa0f3ff5c 100644 (file)
@@ -1,2 +1,3 @@
 default
 mesecons?
+technic?