summaryrefslogtreecommitdiff
path: root/pressure_logic/flowable_node_registry_install.lua
diff options
context:
space:
mode:
Diffstat (limited to 'pressure_logic/flowable_node_registry_install.lua')
-rw-r--r--pressure_logic/flowable_node_registry_install.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/pressure_logic/flowable_node_registry_install.lua b/pressure_logic/flowable_node_registry_install.lua
index 9bb9e9a..5cf1941 100644
--- a/pressure_logic/flowable_node_registry_install.lua
+++ b/pressure_logic/flowable_node_registry_install.lua
@@ -20,14 +20,14 @@ local insertbase = function(nodename)
if checkexists(nodename) then error("pipeworks.flowables duplicate registration!") end
pipeworks.flowables.list.all[nodename] = true
-- table.insert(pipeworks.flowables.list.nodenames, nodename)
- if pipeworks.toggles.pressure_logic then
+ if pipeworks.toggles.pipe_mode == "pressure" then
abmregister.flowlogic(nodename)
end
end
local regwarning = function(kind, nodename)
local tail = ""
- if not pipeworks.toggles.pressure_logic then tail = " but pressure logic not enabled" end
+ if pipeworks.toggles.pipe_mode ~= "pressure" then tail = " but pressure logic not enabled" end
--pipeworks.logger(kind.." flow logic registry requested for "..nodename..tail)
end