From 17cae6896e36d34eda3a2c74679062f7b159f7c6 Mon Sep 17 00:00:00 2001 From: FossFanatic Date: Mon, 13 Feb 2023 11:17:51 +0000 Subject: [PATCH] Add back the logical code? My gut feeling tells me that it is somehow a bad idea to have removed this. --- mods/ITEMS/mcl_core/nodes_trees.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_core/nodes_trees.lua b/mods/ITEMS/mcl_core/nodes_trees.lua index 687c6a1eff..a4413c17a1 100644 --- a/mods/ITEMS/mcl_core/nodes_trees.lua +++ b/mods/ITEMS/mcl_core/nodes_trees.lua @@ -28,8 +28,8 @@ function mcl_core.update_leaves(pos, oldnode) local leaves = minetest.find_nodes_in_area(pos1, pos2, "group:leaves") for _, lpos in pairs(leaves) do lnode = minetest.get_node(lpos) - -- skip already decaying leaf nodes - if minetest.get_item_group(lnode.name, "orphan_leaves") ~= 1 then + -- skip already decaying leaf nodes and player leaves + if minetest.get_item_group(lnode.name, "orphan_leaves") ~= 1 and minetest.get_item_group(lnode.name, "player_leaves") ~= 1 then if not minetest.find_node_near(lpos, 6, "group:tree") then local orphan_name = lnode.name .. "_orphan" local def = minetest.registered_nodes[orphan_name]