From 05688474bdd20b01679ead49a60e44bf6e3c164d Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 5 Sep 2016 14:49:44 +0100 Subject: Updated pine sapling snow check --- bonemeal.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bonemeal.lua') diff --git a/bonemeal.lua b/bonemeal.lua index 34d244f..0c14c0c 100644 --- a/bonemeal.lua +++ b/bonemeal.lua @@ -192,10 +192,8 @@ local function growth(pointed_thing) elseif node.name == "default:pine_sapling" and enough_height(pos, 11) then - if #minetest.find_nodes_in_area( - {x = pos.x - 1, y = pos.y - 1, z = pos.z - 1}, - {x = pos.x + 1, y = pos.y + 1, z = pos.z + 1}, - {"default:snow", "default:snowblock", "default:dirt_with_snow"}) > 0 then + if minetest.find_node_near(pos, 1, + {"default:snow", "default:snowblock", "default:dirt_with_snow"}) then default.grow_new_snowy_pine_tree(pos) else -- cgit v1.2.3