1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-09-27 14:20:18 +02:00

Fix a rare bug in leafdecay

This commit is contained in:
PilzAdam 2012-11-21 18:05:52 +01:00
parent c455ba9b68
commit 6687b5504d

View File

@ -47,7 +47,7 @@ minetest.register_abm({
local n = minetest.env:get_node(trunkp) local n = minetest.env:get_node(trunkp)
local reg = minetest.registered_nodes[n.name] local reg = minetest.registered_nodes[n.name]
-- Assume ignore is a trunk, to make the thing work at the border of the active area -- 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") --print("cached trunk still exists")
return return
end end