From ade1d2d3dd6b0d5024f9ebb5e0e2d6210b68d9e3 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 6 Jan 2017 02:27:42 +0100 Subject: [PATCH] Make water sources flow more aggressively --- mods/default/functions.lua | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/mods/default/functions.lua b/mods/default/functions.lua index 5846af76cf..6ec3b97c0c 100644 --- a/mods/default/functions.lua +++ b/mods/default/functions.lua @@ -107,24 +107,18 @@ 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) - -- 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 + drop_attached_node(pos) + minetest.dig_node(pos) + break 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) - -- 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 + drop_attached_node(pos) + minetest.dig_node(pos) + break end end,