summaryrefslogtreecommitdiff
path: root/new_flow_logic/abms.lua
diff options
context:
space:
mode:
Diffstat (limited to 'new_flow_logic/abms.lua')
-rw-r--r--new_flow_logic/abms.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/new_flow_logic/abms.lua b/new_flow_logic/abms.lua
index 7360668..ece81c1 100644
--- a/new_flow_logic/abms.lua
+++ b/new_flow_logic/abms.lua
@@ -89,13 +89,10 @@ end
-flowlogic.run_pump_intake = function(pos, node)
+flowlogic.run_pump_intake = function(pos, node, maxpressure)
-- try to absorb nearby water nodes, but only up to limit.
-- NB: check_for_liquids_v2 handles zero or negative from the following subtraction
- local properties = pipeworks.flowables.inputs.list[node.name]
- local maxpressure = properties.maxpressure
-
local meta = minetest.get_meta(pos)
local currentpressure = meta:get_float(label_pressure)