Skip to content
Snippets Groups Projects
Commit 6687b550 authored by PilzAdam's avatar PilzAdam
Browse files

Fix a rare bug in leafdecay

parent c455ba9b
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ minetest.register_abm({
local n = minetest.env: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 (reg.groups.tree and reg.groups.tree ~= 0) then
if n.name == "ignore" or (reg and reg.groups.tree and reg.groups.tree ~= 0) then
--print("cached trunk still exists")
return
end
......
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