summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorthetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>2017-10-20 22:46:51 +0100
committerthetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>2017-10-20 22:46:51 +0100
commit75978a020751ce5591d0fd0b8adeaa32422b2fe5 (patch)
treeb1ab231598b02f7342c95ded253c8f671c9b1bd1 /init.lua
parent538e33c537c2c6347a7a2251392fedbf5ee07ba3 (diff)
downloadpipeworks-75978a020751ce5591d0fd0b8adeaa32422b2fe5.tar
pipeworks-75978a020751ce5591d0fd0b8adeaa32422b2fe5.tar.gz
pipeworks-75978a020751ce5591d0fd0b8adeaa32422b2fe5.tar.bz2
pipeworks-75978a020751ce5591d0fd0b8adeaa32422b2fe5.tar.xz
pipeworks-75978a020751ce5591d0fd0b8adeaa32422b2fe5.zip
refactor pressure logic toggle to act as option enum
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/init.lua b/init.lua
index 9ce6a0f..e908bcc 100644
--- a/init.lua
+++ b/init.lua
@@ -15,17 +15,13 @@ 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
+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