diff options
author | thetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com> | 2017-10-07 17:55:14 +0100 |
---|---|---|
committer | thetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com> | 2017-10-07 17:55:14 +0100 |
commit | 65b3448796815718275ed3c16af4865e5e005454 (patch) | |
tree | f069b22becf461f133d1bc1eeb761ebf868e7c70 /new_flow_logic/flowable_node_registry_install.lua | |
parent | 016f9de82f91b61a14ad1bc477ee18b501f77e39 (diff) |
new flow logic: abms.lua: refactor flowlogic.run_output() into a processing stage of flowlogic.run()
Diffstat (limited to 'new_flow_logic/flowable_node_registry_install.lua')
-rw-r--r-- | new_flow_logic/flowable_node_registry_install.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/new_flow_logic/flowable_node_registry_install.lua b/new_flow_logic/flowable_node_registry_install.lua index d195c63..aed6fbd 100644 --- a/new_flow_logic/flowable_node_registry_install.lua +++ b/new_flow_logic/flowable_node_registry_install.lua @@ -75,10 +75,7 @@ register.output = function(nodename, upper, lower, outputfn) error("pipeworks.flowables.outputs duplicate registration!") end checkbase(nodename) - pipeworks.flowables.outputs.list[nodename] = { threshold=threshold, outputfn=outputfn } - if pipeworks.toggles.pressure_logic then - abmregister.output(nodename, lower, outputfn) - end + pipeworks.flowables.outputs.list[nodename] = { upper=upper, lower=lower, outputfn=outputfn } -- output ABM now part of main flow logic ABM to preserve ordering. -- note that because outputs have to be a flowable first -- (and the installation of the flow logic ABM is conditional), |