From ee0c276900dd6c15fac3ed21247f31982c206053 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 3 Nov 2017 22:09:25 -0400 Subject: added straight-only pipe (for situations where one might want to run several closely-spaced parallel pipelines) Also fixed a bug where a pipe "entry panel" would report full of water if a pipe next to it (but not connecting) was also full of water Only tested under "classic" flowing logic mode. --- flowing_logic.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'flowing_logic.lua') diff --git a/flowing_logic.lua b/flowing_logic.lua index 632baa6..0c80a77 100644 --- a/flowing_logic.lua +++ b/flowing_logic.lua @@ -44,7 +44,8 @@ pipeworks.check_for_inflows = function(pos,node) source = minetest.get_meta(coords[i]):get_string("source") if source == minetest.pos_to_string(pos) then break end end - if string.find(name, "valve") or string.find(name, "sensor") then + if string.find(name, "valve") or string.find(name, "sensor") + or string.find(name, "straight_pipe") or string.find(name, "panel") then if ((i == 3 or i == 4) and minetest.facedir_to_dir(testnode.param2).x ~= 0) or ((i == 5 or i == 6) and minetest.facedir_to_dir(testnode.param2).z ~= 0) -- cgit v1.2.3