From 95e4a5a1777eb907f801d7a3fdb4b82aafb82331 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 22 May 2017 18:56:46 +0200 Subject: [PATCH] Fix sources with param2==0 not washing stuff away --- mods/ITEMS/mcl_core/functions.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_core/functions.lua b/mods/ITEMS/mcl_core/functions.lua index 8e2b250d0..30ba814ed 100644 --- a/mods/ITEMS/mcl_core/functions.lua +++ b/mods/ITEMS/mcl_core/functions.lua @@ -106,8 +106,10 @@ local liquid_flow_action = function(pos, group, action) --[[ Check if we want to perform the liquid action. * 1: Item must be in liquid group * 2a: If target node is below liquid, always succeed - * 2b: If target node is horizontal to liquid, check param2 for horizontal flow direction ]] - if (minetest.get_item_group(n.name, group) ~= 0) and ((yp > 0) or (yp == 0 and n.param2 > (8-minetest.registered_nodes[n.name].liquid_range) and n.param2 < 9)) then + * 2b: If target node is horizontal to liquid: succeed if source, otherwise check param2 for horizontal flow direction ]] + if (minetest.get_item_group(n.name, group) ~= 0) and + ((yp > 0) or + (yp == 0 and ((d.liquidtype == "source") or (n.param2 > (8-d.liquid_range) and n.param2 < 9)))) then action(pos) end end