Skip to content
Snippets Groups Projects
Commit 05688474 authored by TenPlus1's avatar TenPlus1
Browse files

Updated pine sapling snow check

parent b7130d09
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment