mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-24 11:53:46 +01:00
Revert "Make water sources flow more aggressively"
This reverts commit ade1d2d3dd6b0d5024f9ebb5e0e2d6210b68d9e3.
This commit is contained in:
parent
ade1d2d3dd
commit
b1192e02c0
@ -107,18 +107,24 @@ minetest.register_abm({
|
||||
for zp=-1,1 do
|
||||
local p = {x=pos.x+xp, y=pos.y, z=pos.z+zp}
|
||||
local n = minetest.get_node(p)
|
||||
drop_attached_node(pos)
|
||||
minetest.dig_node(pos)
|
||||
break
|
||||
-- On verifie si il y a de l'eau
|
||||
if (n.name=="default:water_flowing") then
|
||||
drop_attached_node(pos)
|
||||
minetest.dig_node(pos)
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
-- cas rare
|
||||
for yp=-1,1 do
|
||||
local p = {x=pos.x, y=pos.y+yp, z=pos.z}
|
||||
local n = minetest.get_node(p)
|
||||
drop_attached_node(pos)
|
||||
minetest.dig_node(pos)
|
||||
break
|
||||
-- On verifie si il y a de l'eau
|
||||
if (n.name=="default:water_flowing") then
|
||||
drop_attached_node(pos)
|
||||
minetest.dig_node(pos)
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
end,
|
||||
|
Loading…
Reference in New Issue
Block a user