Skip to content
Permalink
Browse files

Leafdecay: Use param2 ~= 1 instead of param2 == 0

  • Loading branch information
leucome authored and paramat committed Sep 19, 2019
1 parent cbb0529 commit 00f9287075cd3d1f42cc626944bd110402fe08c2
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 00f9287

Please sign in to comment.
You can’t perform that action at this time.