1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2025-06-29 14:50:41 +02:00

pipes.lua: split out new flow logic registration and make it respect feature toggles

This commit is contained in:
thetaepsilon-gamedev
2017-09-27 17:00:18 +01:00
parent d6dcd51302
commit 69133818f7
3 changed files with 46 additions and 37 deletions

View File

@ -117,6 +117,9 @@ pipeworks.enable_new_flow_logic = true
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_pipe_devices then dofile(pipeworks.modpath.."/devices.lua") end
-- individual enable flags also checked in register_flow_logic.lua
if pipeworks.enable_new_flow_logic then dofile(pipeworks.modpath.."/register_flow_logic.lua") end
if pipeworks.enable_redefines then
dofile(pipeworks.modpath.."/compat-chests.lua")
dofile(pipeworks.modpath.."/compat-furnaces.lua")