Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cornernote committed Sep 20, 2012
1 parent be968a9 commit 096ede3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/default/default/leafdecay.lua
Expand Up @@ -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 ~= nil and reg.groups.tree and reg.groups.tree ~= 0) then
--print("cached trunk still exists")
return
end
Expand Down

0 comments on commit 096ede3

Please sign in to comment.