1
0
Fork 0

Revert "Make water sources flow more aggressively"

This reverts commit ade1d2d3dd.
This commit is contained in:
Wuzzy 2017-01-06 02:35:45 +01:00
parent ade1d2d3dd
commit b1192e02c0
1 changed files with 12 additions and 6 deletions

View File

@ -107,18 +107,24 @@ minetest.register_abm({
for zp=-1,1 do for zp=-1,1 do
local p = {x=pos.x+xp, y=pos.y, z=pos.z+zp} local p = {x=pos.x+xp, y=pos.y, z=pos.z+zp}
local n = minetest.get_node(p) local n = minetest.get_node(p)
drop_attached_node(pos) -- On verifie si il y a de l'eau
minetest.dig_node(pos) if (n.name=="default:water_flowing") then
break drop_attached_node(pos)
minetest.dig_node(pos)
break
end
end end
end end
-- cas rare -- cas rare
for yp=-1,1 do for yp=-1,1 do
local p = {x=pos.x, y=pos.y+yp, z=pos.z} local p = {x=pos.x, y=pos.y+yp, z=pos.z}
local n = minetest.get_node(p) local n = minetest.get_node(p)
drop_attached_node(pos) -- On verifie si il y a de l'eau
minetest.dig_node(pos) if (n.name=="default:water_flowing") then
break drop_attached_node(pos)
minetest.dig_node(pos)
break
end
end end
end, end,