From 6687b5504d983ca75a4551783f9e02ded41205a6 Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Wed, 21 Nov 2012 18:05:52 +0100 Subject: [PATCH] Fix a rare bug in leafdecay --- mods/default/leafdecay.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/default/leafdecay.lua b/mods/default/leafdecay.lua index 8f4ff974..fe845736 100644 --- a/mods/default/leafdecay.lua +++ b/mods/default/leafdecay.lua @@ -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