From 75978a020751ce5591d0fd0b8adeaa32422b2fe5 Mon Sep 17 00:00:00 2001 From: thetaepsilon-gamedev Date: Fri, 20 Oct 2017 22:46:51 +0100 Subject: refactor pressure logic toggle to act as option enum --- init.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'init.lua') 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 -- cgit v1.2.3