From 21892456f529e099a0c1d47ae780101d172f818a Mon Sep 17 00:00:00 2001 From: thetaepsilon-gamedev Date: Sat, 30 Sep 2017 23:55:16 +0100 Subject: init.lua: move non-destructive new_flow_logic code outside if-guard --- init.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index a081759..d6067e5 100644 --- a/init.lua +++ b/init.lua @@ -116,7 +116,10 @@ dofile(pipeworks.modpath.."/trashcan.lua") dofile(pipeworks.modpath.."/wielder.lua") local logicdir = "/new_flow_logic/" --- note that pipes still don't appear until registered in the files below this one, so can still be turned off + +-- note that even with these files the new flow logic is not yet default +dofile(pipeworks.modpath..logicdir.."abms.lua") +dofile(pipeworks.modpath..logicdir.."abm_register.lua") dofile(pipeworks.modpath..logicdir.."flowable_node_registry.lua") if pipeworks.enable_pipes then dofile(pipeworks.modpath.."/pipes.lua") end @@ -124,8 +127,6 @@ if pipeworks.enable_teleport_tube then dofile(pipeworks.modpath.."/teleport_tube if pipeworks.enable_pipe_devices then dofile(pipeworks.modpath.."/devices.lua") end -- individual enable flags also checked in register_local_pipes.lua if pipeworks.enable_new_flow_logic then - dofile(pipeworks.modpath..logicdir.."abms.lua") - dofile(pipeworks.modpath..logicdir.."abm_register.lua") dofile(pipeworks.modpath..logicdir.."register_local_pipes.lua") end -- cgit v1.2.3