Skip to content

Commit

Permalink
Leafdecay: Use param2 ~= 1 instead of param2 == 0
Browse files Browse the repository at this point in the history
  • Loading branch information
leucome authored and paramat committed Sep 19, 2019
1 parent cbb0529 commit 00f9287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/default/functions.lua
Expand Up @@ -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
Expand Down

0 comments on commit 00f9287

Please sign in to comment.