diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-07-22 01:02:29 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-07-22 01:02:29 -0400 |
commit | c9b180116f8405a9f83da0730382add85ff410c0 (patch) | |
tree | b846fee59ac8e5a9c4dafdcbcc0fddd1a46aa888 | |
parent | ec416df7945f85bdb6fc50369b7049e52d96e791 (diff) |
fix the check for technic for craft recipes, use optional depends to
make sure it loads first
-rw-r--r-- | crafts.lua | 3 | ||||
-rw-r--r-- | depends.txt | 1 |
2 files changed, 2 insertions, 2 deletions
@@ -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", diff --git a/depends.txt b/depends.txt index 1b3c797..a7d94a5 100644 --- a/depends.txt +++ b/depends.txt @@ -1,2 +1,3 @@ default mesecons? +technic? |