summaryrefslogtreecommitdiff
path: root/flowing_logic.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-11-03 22:09:25 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-11-03 23:02:36 -0400
commitee0c276900dd6c15fac3ed21247f31982c206053 (patch)
tree672ab43661749bdf88a4ab8c50b53a3d013e6cc9 /flowing_logic.lua
parente46e2f8c45975e7a85fd72d034d072af35cf87b7 (diff)
downloadpipeworks-ee0c276900dd6c15fac3ed21247f31982c206053.tar
pipeworks-ee0c276900dd6c15fac3ed21247f31982c206053.tar.gz
pipeworks-ee0c276900dd6c15fac3ed21247f31982c206053.tar.bz2
pipeworks-ee0c276900dd6c15fac3ed21247f31982c206053.tar.xz
pipeworks-ee0c276900dd6c15fac3ed21247f31982c206053.zip
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.
Diffstat (limited to 'flowing_logic.lua')
-rw-r--r--flowing_logic.lua3
1 files changed, 2 insertions, 1 deletions
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)