Updated pine sapling snow check
This commit is contained in:
parent
b7130d09d2
commit
05688474bd
@ -192,10 +192,8 @@ local function growth(pointed_thing)
|
|||||||
elseif node.name == "default:pine_sapling"
|
elseif node.name == "default:pine_sapling"
|
||||||
and enough_height(pos, 11) then
|
and enough_height(pos, 11) then
|
||||||
|
|
||||||
if #minetest.find_nodes_in_area(
|
if minetest.find_node_near(pos, 1,
|
||||||
{x = pos.x - 1, y = pos.y - 1, z = pos.z - 1},
|
{"default:snow", "default:snowblock", "default:dirt_with_snow"}) then
|
||||||
{x = pos.x + 1, y = pos.y + 1, z = pos.z + 1},
|
|
||||||
{"default:snow", "default:snowblock", "default:dirt_with_snow"}) > 0 then
|
|
||||||
|
|
||||||
default.grow_new_snowy_pine_tree(pos)
|
default.grow_new_snowy_pine_tree(pos)
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user