mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 12:31:05 +01:00
Make water sources flow more aggressively
This commit is contained in:
parent
cb25df94f6
commit
ade1d2d3dd
1 changed files with 6 additions and 12 deletions
|
@ -107,24 +107,18 @@ 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)
|
||||||
-- On verifie si il y a de l'eau
|
drop_attached_node(pos)
|
||||||
if (n.name=="default:water_flowing") then
|
minetest.dig_node(pos)
|
||||||
drop_attached_node(pos)
|
break
|
||||||
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)
|
||||||
-- On verifie si il y a de l'eau
|
drop_attached_node(pos)
|
||||||
if (n.name=="default:water_flowing") then
|
minetest.dig_node(pos)
|
||||||
drop_attached_node(pos)
|
break
|
||||||
minetest.dig_node(pos)
|
|
||||||
break
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in a new issue