From 75978a020751ce5591d0fd0b8adeaa32422b2fe5 Mon Sep 17 00:00:00 2001 From: thetaepsilon-gamedev Date: Fri, 20 Oct 2017 22:46:51 +0100 Subject: refactor pressure logic toggle to act as option enum --- pressure_logic/abm_register.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pressure_logic/abm_register.lua') diff --git a/pressure_logic/abm_register.lua b/pressure_logic/abm_register.lua index a8e3abc..4019eef 100644 --- a/pressure_logic/abm_register.lua +++ b/pressure_logic/abm_register.lua @@ -10,7 +10,7 @@ local flowlogic = pipeworks.flowlogic -- see flowlogic.run() in abms.lua. local register_flowlogic_abm = function(nodename) - if pipeworks.toggles.pressure_logic then + if pipeworks.toggles.pipe_mode == "pressure" then minetest.register_abm({ label = "pipeworks new_flow_logic run", nodenames = { nodename }, -- cgit v1.2.3