Fix sources with param2==0 not washing stuff away
This commit is contained in:
parent
a5a73332c0
commit
95e4a5a177
|
@ -106,8 +106,10 @@ local liquid_flow_action = function(pos, group, action)
|
||||||
--[[ Check if we want to perform the liquid action.
|
--[[ Check if we want to perform the liquid action.
|
||||||
* 1: Item must be in liquid group
|
* 1: Item must be in liquid group
|
||||||
* 2a: If target node is below liquid, always succeed
|
* 2a: If target node is below liquid, always succeed
|
||||||
* 2b: If target node is horizontal to liquid, check param2 for horizontal flow direction ]]
|
* 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 n.param2 > (8-minetest.registered_nodes[n.name].liquid_range) and n.param2 < 9)) then
|
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)
|
action(pos)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user