From ff3e158bf81a6157c76e2ca7fc50b9d1c8789f58 Mon Sep 17 00:00:00 2001 From: cora Date: Sat, 3 Aug 2024 19:19:09 +0200 Subject: [PATCH] Don't stop tree growth on buildable_to nodes --- mods/ITEMS/mcl_core/functions.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/ITEMS/mcl_core/functions.lua b/mods/ITEMS/mcl_core/functions.lua index eec432184..e2cf8787b 100644 --- a/mods/ITEMS/mcl_core/functions.lua +++ b/mods/ITEMS/mcl_core/functions.lua @@ -265,8 +265,8 @@ local function air_leaf(leaftype) end end --- Check if a node stops a tree from growing. Torches, plants, wood, tree, --- leaves and dirt does not affect tree growth. +-- Check if a node stops a tree from growing. Torches, plants, wood, tree, +-- leaves, dirt and buildable nodes do not affect tree growth. local function node_stops_growth(node) if node.name == "air" then return false @@ -282,7 +282,7 @@ local function node_stops_growth(node) return true end 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 end