summaryrefslogtreecommitdiff
path: root/new_flow_logic/flowable_node_registry.lua
diff options
context:
space:
mode:
authorthetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>2017-10-01 00:44:14 +0100
committerthetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>2017-10-01 00:44:14 +0100
commit3486ee319ee4fafbf83c583dd9fedfaed92db7c4 (patch)
treef58d533f4ddb2e891f1dd6c19f1ed52ba7791866 /new_flow_logic/flowable_node_registry.lua
parentaee23d76426734892f1d7129c02c56b58cc813af (diff)
downloadpipeworks-3486ee319ee4fafbf83c583dd9fedfaed92db7c4.tar
pipeworks-3486ee319ee4fafbf83c583dd9fedfaed92db7c4.tar.gz
pipeworks-3486ee319ee4fafbf83c583dd9fedfaed92db7c4.tar.bz2
pipeworks-3486ee319ee4fafbf83c583dd9fedfaed92db7c4.tar.xz
pipeworks-3486ee319ee4fafbf83c583dd9fedfaed92db7c4.zip
abms.lua: refactor and generalise run_pump_intake() to allow passing custom intake functions
Diffstat (limited to 'new_flow_logic/flowable_node_registry.lua')
-rw-r--r--new_flow_logic/flowable_node_registry.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/new_flow_logic/flowable_node_registry.lua b/new_flow_logic/flowable_node_registry.lua
index 3cb2a67..1465561 100644
--- a/new_flow_logic/flowable_node_registry.lua
+++ b/new_flow_logic/flowable_node_registry.lua
@@ -51,7 +51,6 @@ local checkbase = function(nodename)
end
-- Register a node as a simple intake.
--- See new_flow_logic for the details of this.
-- Expects node to be registered as a flowable (is present in flowables.list.all),
-- so that water can move out of it.
-- maxpressure is the maximum pipeline pressure that this node can drive.
@@ -61,6 +60,6 @@ register.intake_simple = function(nodename, maxpressure)
pipeworks.flowables.inputs.list[nodename] = { maxpressure=maxpressure }
table.insert(pipeworks.flowables.inputs.nodenames, nodename)
if pipeworks.enable_new_flow_logic then
- abmregister.input(nodename, maxpressure)
+ abmregister.input(nodename, maxpressure, pipeworks.flowlogic.check_for_liquids_v2)
end
end