mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-11-12 18:33:54 +01:00
new flow logic: abms.lua: pass finite mode flag to run_output()
This commit is contained in:
parent
453a114cd0
commit
bd32b4fca2
@ -75,6 +75,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
local finitemode = pipeworks.toggles.finite_water
|
||||||
flowlogic.run = function(pos, node)
|
flowlogic.run = function(pos, node)
|
||||||
local nodename = node.name
|
local nodename = node.name
|
||||||
-- get the current pressure value.
|
-- get the current pressure value.
|
||||||
@ -99,7 +100,8 @@ flowlogic.run = function(pos, node)
|
|||||||
pos,
|
pos,
|
||||||
node,
|
node,
|
||||||
currentpressure,
|
currentpressure,
|
||||||
outputdef)
|
outputdef,
|
||||||
|
finitemode)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- set the new pressure
|
-- 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.
|
-- processing step for water output devices.
|
||||||
-- takes care of checking a minimum pressure value and updating the resulting pressure level
|
-- 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".
|
-- the outputfn is provided the current pressure and returns the pressure "taken".
|
||||||
|
Loading…
Reference in New Issue
Block a user