summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorthetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>2017-10-03 20:38:56 +0100
committerthetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>2017-10-03 20:38:56 +0100
commit894ea5174fb8c3be9038698cb119b24acbec8cea (patch)
treeff8b20a63787672265d8ea12615b6b70973fdbc2 /init.lua
parent8e53526b545e2dc0a05066fb18f064a394e20740 (diff)
downloadpipeworks-894ea5174fb8c3be9038698cb119b24acbec8cea.tar
pipeworks-894ea5174fb8c3be9038698cb119b24acbec8cea.tar.gz
pipeworks-894ea5174fb8c3be9038698cb119b24acbec8cea.tar.bz2
pipeworks-894ea5174fb8c3be9038698cb119b24acbec8cea.tar.xz
pipeworks-894ea5174fb8c3be9038698cb119b24acbec8cea.zip
move new flow logic flag to dedicated toggles table
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index 2a95be6..8bae8e8 100644
--- a/init.lua
+++ b/init.lua
@@ -17,14 +17,16 @@ dofile(pipeworks.modpath.."/default_settings.lua")
-- Read the external config file if it exists.
+-- please add any new feature toggles to be a flag in this table...
+pipeworks.toggles = {}
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!")
+if pipeworks.toggles.pressure_logic then
+ minetest.log("warning", "pipeworks pressure-based logic is WIP and incomplete!")
end
-- Random variables
@@ -123,7 +125,7 @@ local logicdir = "/new_flow_logic/"
-- note that even with these files the new flow logic is not yet default.
-- registration will take place but no actual ABMs/node logic will be installed,
--- unless pipeworks.enable_new_flow_logic has been set.
+-- unless the toggle flag is specifically enabled in the per-world settings flag.
dofile(pipeworks.modpath..logicdir.."flowable_node_registry.lua")
dofile(pipeworks.modpath..logicdir.."abms.lua")
dofile(pipeworks.modpath..logicdir.."abm_register.lua")