Compare commits

...

1 Commits

Author SHA1 Message Date
cora ecf6d29bd3 Don't stop tree growth on buildable_to nodes 2024-08-06 18:17:51 +07:00
1 changed files with 3 additions and 3 deletions

View File

@ -266,7 +266,7 @@ local function air_leaf(leaftype)
end end
-- Check if a node stops a tree from growing. Torches, plants, wood, tree, -- Check if a node stops a tree from growing. Torches, plants, wood, tree,
-- leaves and dirt does not affect tree growth. -- leaves, dirt and buildable nodes do not affect tree growth.
local function node_stops_growth(node) local function node_stops_growth(node)
if node.name == "air" then if node.name == "air" then
return false return false
@ -282,7 +282,7 @@ local function node_stops_growth(node)
return true return true
end end
if groups.plant or groups.torch or groups.dirt or groups.tree if groups.plant or groups.torch or groups.dirt or groups.tree
or groups.bark or groups.leaves or groups.wood then or groups.bark or groups.leaves or groups.wood or def.buildable_to then
return false return false
end end