From 1fecd232c5d2ebfe33dfd5fddabafa6994ebba53 Mon Sep 17 00:00:00 2001 From: HybridDog Date: Fri, 12 Feb 2016 17:22:45 +0100 Subject: [PATCH] :cat2: --- init.lua | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/init.lua b/init.lua index ca010a0..53caa8e 100644 --- a/init.lua +++ b/init.lua @@ -307,14 +307,18 @@ end -- 1: bright leaves (special) -- function conifers:add_leaves_block(pos, special, near_trunk) - if (not conifers:are_leaves_surrounded(pos)) - or near_trunk then - local p_pos = area:index(pos.x, pos.y, pos.z) - if special == 0 then - nodes[p_pos] = conifers_c_con_leaves - else - nodes[p_pos] = conifers_c_con_leaves_special - end + if conifers:are_leaves_surrounded(pos) + and not near_trunk then + return + end + local p_pos = area:index(pos.x, pos.y, pos.z) + if nodes[p_pos] ~= conifers_c_air then + return + end + if special == 0 then + nodes[p_pos] = conifers_c_con_leaves + else + nodes[p_pos] = conifers_c_con_leaves_special end end