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:
cbb0529
)
Leafdecay: Use param2 ~= 1 instead of param2 == 0
author
leucome
<leucome@hotmail.com>
Thu, 19 Sep 2019 01:13:18 +0000
(21:13 -0400)
committer
Paramat
<paramat@users.noreply.github.com>
Thu, 19 Sep 2019 01:13:18 +0000
(
02:13
+0100)
mods/default/functions.lua
patch
|
blob
|
history
diff --git
a/mods/default/functions.lua
b/mods/default/functions.lua
index 2a4fdfeb199b626dfc8f86c61a4116c2ddfc5ec4..9d6c593728a795c825b1489a751f29e825b7c404 100644
(file)
--- a/
mods/default/functions.lua
+++ b/
mods/default/functions.lua
@@
-427,7
+427,7
@@
local function leafdecay_after_destruct(pos, oldnode, def)
vector.add(pos, def.radius), def.leaves)) do
local node = minetest.get_node(v)
local timer = minetest.get_node_timer(v)
- if node.param2
== 0
and not timer:is_started() then
+ if node.param2
~= 1
and not timer:is_started() then
timer:start(math.random(20, 120) / 10)
end
end