diff options
author | thetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com> | 2017-10-07 22:03:53 +0100 |
---|---|---|
committer | thetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com> | 2017-10-07 22:03:53 +0100 |
commit | bd32b4fca2ee77da1b4b017d3e90a4013d4393a8 (patch) | |
tree | e946840c32fb9e41a349ae058ea3b5964f55ead4 | |
parent | 453a114cd022a4d7b0a028f9e4a9785e20e6e368 (diff) |
new flow logic: abms.lua: pass finite mode flag to run_output()
-rw-r--r-- | new_flow_logic/abms.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/new_flow_logic/abms.lua b/new_flow_logic/abms.lua index 6fee744..1605ea3 100644 --- a/new_flow_logic/abms.lua +++ b/new_flow_logic/abms.lua @@ -75,6 +75,7 @@ end +local finitemode = pipeworks.toggles.finite_water flowlogic.run = function(pos, node) local nodename = node.name -- get the current pressure value. @@ -99,7 +100,8 @@ flowlogic.run = function(pos, node) pos, node, currentpressure, - outputdef) + outputdef, + finitemode) end -- set the new pressure @@ -202,7 +204,7 @@ end -flowlogic.run_output = function(pos, node, currentpressure, outputdef) +flowlogic.run_output = function(pos, node, currentpressure, outputdef, finitemode) -- processing step for water output devices. -- takes care of checking a minimum pressure value and updating the resulting pressure level -- the outputfn is provided the current pressure and returns the pressure "taken". |