diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-09-30 08:52:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-30 08:52:13 -0400 |
commit | 879b4489b21946306004506bea51b32f6d9de6a2 (patch) | |
tree | 6138f169a50eb2b8d1dd65fd75c0d568da4d4073 /init.lua | |
parent | 2adcd3e777c45d5988ce21d3130fa8f6c6483e53 (diff) | |
parent | 1666dfc2c7f26ac4cfe0ac01b4e164b7bae36681 (diff) |
Merge pull request #202 from thetaepsilon-gamedev/master
start of new_flow_logic reimplementation
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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") |