summaryrefslogtreecommitdiff
path: root/crafts.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-07-22 01:02:29 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-07-22 01:02:29 -0400
commitc9b180116f8405a9f83da0730382add85ff410c0 (patch)
treeb846fee59ac8e5a9c4dafdcbcc0fddd1a46aa888 /crafts.lua
parentec416df7945f85bdb6fc50369b7049e52d96e791 (diff)
downloadpipeworks-c9b180116f8405a9f83da0730382add85ff410c0.tar
pipeworks-c9b180116f8405a9f83da0730382add85ff410c0.tar.gz
pipeworks-c9b180116f8405a9f83da0730382add85ff410c0.tar.bz2
pipeworks-c9b180116f8405a9f83da0730382add85ff410c0.tar.xz
pipeworks-c9b180116f8405a9f83da0730382add85ff410c0.zip
fix the check for technic for craft recipes, use optional depends to
make sure it loads first
Diffstat (limited to 'crafts.lua')
-rw-r--r--crafts.lua3
1 files changed, 1 insertions, 2 deletions
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",