mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-11-08 16:33:58 +01:00
init.lua: turn off by-default new flow logic for now
This commit is contained in:
parent
df8ef255a3
commit
2d70d2b657
@ -27,6 +27,8 @@ local settings = {
|
|||||||
drop_on_routing_fail = false,
|
drop_on_routing_fail = false,
|
||||||
|
|
||||||
delete_item_on_clearobject = true,
|
delete_item_on_clearobject = true,
|
||||||
|
|
||||||
|
enable_new_flow_logic = false,
|
||||||
}
|
}
|
||||||
|
|
||||||
for name, value in pairs(settings) do
|
for name, value in pairs(settings) do
|
||||||
|
9
init.lua
9
init.lua
@ -14,14 +14,18 @@ pipeworks.worldpath = minetest.get_worldpath()
|
|||||||
pipeworks.modpath = minetest.get_modpath("pipeworks")
|
pipeworks.modpath = minetest.get_modpath("pipeworks")
|
||||||
|
|
||||||
dofile(pipeworks.modpath.."/default_settings.lua")
|
dofile(pipeworks.modpath.."/default_settings.lua")
|
||||||
|
|
||||||
-- Read the external config file if it exists.
|
-- Read the external config file if it exists.
|
||||||
|
|
||||||
|
|
||||||
local worldsettingspath = pipeworks.worldpath.."/pipeworks_settings.txt"
|
local worldsettingspath = pipeworks.worldpath.."/pipeworks_settings.txt"
|
||||||
local worldsettingsfile = io.open(worldsettingspath, "r")
|
local worldsettingsfile = io.open(worldsettingspath, "r")
|
||||||
if worldsettingsfile then
|
if worldsettingsfile then
|
||||||
worldsettingsfile:close()
|
worldsettingsfile:close()
|
||||||
dofile(worldsettingspath)
|
dofile(worldsettingspath)
|
||||||
end
|
end
|
||||||
|
if pipeworks.enable_new_flow_logic then
|
||||||
|
minetest.log("warning", "pipeworks new_flow_logic is WIP and incomplete!")
|
||||||
|
end
|
||||||
|
|
||||||
-- Random variables
|
-- Random variables
|
||||||
|
|
||||||
@ -111,9 +115,6 @@ dofile(pipeworks.modpath.."/filter-injector.lua")
|
|||||||
dofile(pipeworks.modpath.."/trashcan.lua")
|
dofile(pipeworks.modpath.."/trashcan.lua")
|
||||||
dofile(pipeworks.modpath.."/wielder.lua")
|
dofile(pipeworks.modpath.."/wielder.lua")
|
||||||
|
|
||||||
-- temporary flag to enable new flowing behaviour
|
|
||||||
pipeworks.enable_new_flow_logic = true
|
|
||||||
|
|
||||||
if pipeworks.enable_pipes then dofile(pipeworks.modpath.."/pipes.lua") end
|
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_teleport_tube then dofile(pipeworks.modpath.."/teleport_tube.lua") end
|
||||||
if pipeworks.enable_pipe_devices then dofile(pipeworks.modpath.."/devices.lua") end
|
if pipeworks.enable_pipe_devices then dofile(pipeworks.modpath.."/devices.lua") end
|
||||||
|
Loading…
Reference in New Issue
Block a user