Fix leafdecay of burned branches

master
Wuzzy 2021-08-14 12:43:32 +02:00
parent fd824f6e0b
commit 5dfe65166d
1 changed files with 1 additions and 2 deletions

View File

@ -75,9 +75,8 @@ minetest.register_abm({
local trunkp = hades_trees.leafdecay_trunk_cache[p0_hash]
if trunkp then
local n = minetest.get_node(trunkp)
local reg = minetest.registered_nodes[n.name]
-- Assume ignore is a trunk, to make the thing work at the border of the active area
if (n.name == "ignore") or (any and reg and reg.groups.tree ~= 0) or (n.name == trunk_to_check) then
if (n.name == "ignore") or (any and minetest.get_item_group(n.name, "tree") ~= 0) or (n.name == trunk_to_check) then
minetest.log("verbose", "[hades_trees] leafdecay: cached trunk still exists")
return
end