summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-09-30 08:52:13 -0400
committerGitHub <noreply@github.com>2017-09-30 08:52:13 -0400
commit879b4489b21946306004506bea51b32f6d9de6a2 (patch)
tree6138f169a50eb2b8d1dd65fd75c0d568da4d4073 /init.lua
parent2adcd3e777c45d5988ce21d3130fa8f6c6483e53 (diff)
parent1666dfc2c7f26ac4cfe0ac01b4e164b7bae36681 (diff)
downloadpipeworks-879b4489b21946306004506bea51b32f6d9de6a2.tar
pipeworks-879b4489b21946306004506bea51b32f6d9de6a2.tar.gz
pipeworks-879b4489b21946306004506bea51b32f6d9de6a2.tar.bz2
pipeworks-879b4489b21946306004506bea51b32f6d9de6a2.tar.xz
pipeworks-879b4489b21946306004506bea51b32f6d9de6a2.zip
Merge pull request #202 from thetaepsilon-gamedev/master
start of new_flow_logic reimplementation
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua12
1 files changed, 11 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 2e05337..470db2e 100644
--- a/init.lua
+++ b/init.lua
@@ -14,14 +14,18 @@ pipeworks.worldpath = minetest.get_worldpath()
pipeworks.modpath = minetest.get_modpath("pipeworks")
dofile(pipeworks.modpath.."/default_settings.lua")
-
-- Read the external config file if it exists.
+
+
local worldsettingspath = pipeworks.worldpath.."/pipeworks_settings.txt"
local worldsettingsfile = io.open(worldsettingspath, "r")
if worldsettingsfile then
worldsettingsfile:close()
dofile(worldsettingspath)
end
+if pipeworks.enable_new_flow_logic then
+ minetest.log("warning", "pipeworks new_flow_logic is WIP and incomplete!")
+end
-- Random variables
@@ -114,6 +118,12 @@ dofile(pipeworks.modpath.."/wielder.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
+-- individual enable flags also checked in register_flow_logic.lua
+if pipeworks.enable_new_flow_logic then
+ dofile(pipeworks.modpath.."/new_flow_logic.lua")
+ dofile(pipeworks.modpath.."/register_flow_logic.lua")
+end
+
if pipeworks.enable_redefines then
dofile(pipeworks.modpath.."/compat-chests.lua")
dofile(pipeworks.modpath.."/compat-furnaces.lua")