summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/init.lua b/init.lua
index f4276f8..e908bcc 100644
--- a/init.lua
+++ b/init.lua
@@ -15,18 +15,14 @@ pipeworks.modpath = minetest.get_modpath("pipeworks")
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.toggles.pressure_logic then
- minetest.log("warning", "pipeworks pressure-based logic is WIP and incomplete!")
+if pipeworks.toggles.pipe_mode == "pressure" then
+ minetest.log("warning", "pipeworks pressure logic mode comes with caveats and differences in behaviour, you have been warned!")
end
-- Random variables