From e537155d254eee0cd40917c0aa2b53c115513450 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Wed, 25 Jan 2017 12:10:48 -0700 Subject: [PATCH] no need to wait for flowing liquid to appear, allow liquid to flow directly into air as well. --- init.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index ff9bb9a..2a43c2a 100644 --- a/init.lua +++ b/init.lua @@ -82,7 +82,8 @@ local liquid_abm = function(liquid, flowing_liquid, chance) action = function(pos,node) -- Do everything possible to optimize this method local check_pos = {x=pos.x, y=pos.y-1, z=pos.z} local check_node = get_node(check_pos) - if check_node.name == flowing_liquid then + local check_node_name = check_node.name + if check_node_name == flowing_liquid or check_node_name == "air" then set_node(pos, check_node) set_node(check_pos, node) return @@ -96,7 +97,8 @@ local liquid_abm = function(liquid, flowing_liquid, chance) check_pos.y = pos.y check_pos.z = pos.z + dirs.z check_node = get_node(check_pos) - if check_node.name == flowing_liquid then + check_node_name = check_node.name + if check_node_name == flowing_liquid or check_node_name == "air" then set_node(pos, check_node) set_node(check_pos, node) return