summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-12-08 20:01:47 +0000
committerrubenwardy <rw@rubenwardy.com>2018-12-08 20:10:48 +0000
commitda764f4ce02b82e36e3c01d3903a4322bc3c9886 (patch)
tree52d112e4404f1b251594886fc86b8794db8ffe04 /init.lua
parentef5d30c92d71aa593353f453368ab429b47eadf4 (diff)
downloadpipeworks-da764f4ce02b82e36e3c01d3903a4322bc3c9886.tar
pipeworks-da764f4ce02b82e36e3c01d3903a4322bc3c9886.tar.gz
pipeworks-da764f4ce02b82e36e3c01d3903a4322bc3c9886.tar.bz2
pipeworks-da764f4ce02b82e36e3c01d3903a4322bc3c9886.tar.xz
pipeworks-da764f4ce02b82e36e3c01d3903a4322bc3c9886.zip
Remove hard dependency on mesecons
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index 714480e..445a8d4 100644
--- a/init.lua
+++ b/init.lua
@@ -133,15 +133,16 @@ dofile(pipeworks.modpath..logicdir.."flowable_node_registry_install.lua")
if pipeworks.enable_pipes then dofile(pipeworks.modpath.."/pipes.lua") end
if pipeworks.enable_teleport_tube then dofile(pipeworks.modpath.."/teleport_tube.lua") end
if pipeworks.enable_pipe_devices then dofile(pipeworks.modpath.."/devices.lua") end
-
if pipeworks.enable_redefines then
dofile(pipeworks.modpath.."/compat-chests.lua")
dofile(pipeworks.modpath.."/compat-furnaces.lua")
end
if pipeworks.enable_autocrafter then dofile(pipeworks.modpath.."/autocrafter.lua") end
-if pipeworks.enable_lua_tube then dofile(pipeworks.modpath.."/lua_tube.lua") end
+if pipeworks.enable_lua_tube and
+ (minetest.get_modpath("mesecons") or minetest.get_modpath("digilines")) then
+ dofile(pipeworks.modpath.."/lua_tube.lua")
+end
minetest.register_alias("pipeworks:pipe", "pipeworks:pipe_110000_empty")
print("Pipeworks loaded!")
-