summaryrefslogtreecommitdiff
path: root/new_flow_logic
diff options
context:
space:
mode:
authorthetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>2017-10-03 20:38:56 +0100
committerthetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>2017-10-03 20:38:56 +0100
commit894ea5174fb8c3be9038698cb119b24acbec8cea (patch)
treeff8b20a63787672265d8ea12615b6b70973fdbc2 /new_flow_logic
parent8e53526b545e2dc0a05066fb18f064a394e20740 (diff)
downloadpipeworks-894ea5174fb8c3be9038698cb119b24acbec8cea.tar
pipeworks-894ea5174fb8c3be9038698cb119b24acbec8cea.tar.gz
pipeworks-894ea5174fb8c3be9038698cb119b24acbec8cea.tar.bz2
pipeworks-894ea5174fb8c3be9038698cb119b24acbec8cea.tar.xz
pipeworks-894ea5174fb8c3be9038698cb119b24acbec8cea.zip
move new flow logic flag to dedicated toggles table
Diffstat (limited to 'new_flow_logic')
-rw-r--r--new_flow_logic/flowable_node_registry_install.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/new_flow_logic/flowable_node_registry_install.lua b/new_flow_logic/flowable_node_registry_install.lua
index ac305dc..defe877 100644
--- a/new_flow_logic/flowable_node_registry_install.lua
+++ b/new_flow_logic/flowable_node_registry_install.lua
@@ -24,7 +24,7 @@ end
local regwarning = function(kind, nodename)
local tail = ""
- if not pipeworks.enable_new_flow_logic then tail = " but new_flow_logic not enabled" end
+ if not pipeworks.toggles.pressure_logic then tail = " but pressure logic not enabled" end
pipeworks.logger(kind.." flow logic registry requested for "..nodename..tail)
end
@@ -35,7 +35,7 @@ register.simple = function(nodename)
insertbase(nodename)
pipeworks.flowables.list.simple[nodename] = true
table.insert(pipeworks.flowables.list.simple_nodenames, nodename)
- if pipeworks.enable_new_flow_logic then
+ if pipeworks.toggles.pressure_logic then
abmregister.balance(nodename)
end
regwarning("simple", nodename)
@@ -54,7 +54,7 @@ register.intake_simple = function(nodename, maxpressure)
checkbase(nodename)
pipeworks.flowables.inputs.list[nodename] = { maxpressure=maxpressure }
table.insert(pipeworks.flowables.inputs.nodenames, nodename)
- if pipeworks.enable_new_flow_logic then
+ if pipeworks.toggles.pressure_logic then
abmregister.input(nodename, maxpressure, pipeworks.flowlogic.check_for_liquids_v2)
end
regwarning("simple intake", nodename)
@@ -66,7 +66,7 @@ end
register.output = function(nodename, threshold, outputfn)
checkbase(nodename)
pipeworks.flowables.outputs.list[nodename] = { threshold=threshold, outputfn=outputfn }
- if pipeworks.enable_new_flow_logic then
+ if pipeworks.toggles.pressure_logic then
abmregister.output(nodename, threshold, outputfn)
end
regwarning("output node", nodename)