projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c455ba9
)
Fix a rare bug in leafdecay
author
PilzAdam
<adam-k@outlook.com>
Wed, 21 Nov 2012 17:05:52 +0000
(18:05 +0100)
committer
PilzAdam
<adam-k@outlook.com>
Wed, 21 Nov 2012 17:05:52 +0000
(18:05 +0100)
mods/default/leafdecay.lua
patch
|
blob
|
history
diff --git
a/mods/default/leafdecay.lua
b/mods/default/leafdecay.lua
index 8f4ff9748f60fea32603f6685b716046c2d4b5b1..fe845736fa8ed5a46b48367cceb48fe82cc1a81c 100644
(file)
--- 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