summaryrefslogtreecommitdiff
path: root/water.lua
diff options
context:
space:
mode:
Diffstat (limited to 'water.lua')
-rw-r--r--water.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/water.lua b/water.lua
index 3253543..d7d9d08 100644
--- a/water.lua
+++ b/water.lua
@@ -102,7 +102,7 @@ minetest.register_abm({
chance = 1,
action = function(pos, node)
local num = #minetest.find_nodes_in_area({x=pos.x-1, y=pos.y, z=pos.z}, {x=pos.x+1, y=pos.y, z=pos.z}, {"group:water"})
- num = num + #minetest.find_nodes_in_area({x=pos.x, y=pos.y, z=pos.z-1}, {x=pos.x, y=pos.y, z=pos.z-1}, {"group:water"})
+ num = num + #minetest.find_nodes_in_area({x=pos.x, y=pos.y, z=pos.z-1}, {x=pos.x, y=pos.y, z=pos.z+1}, {"group:water"})
num = num + #minetest.find_nodes_in_area({x=pos.x, y=pos.y+1, z=pos.z}, {x=pos.x, y=pos.y+1, z=pos.z}, {"group:water"})
if num > 0 then
minetest.set_node(pos, {name="default:water_flowing"})