From: leucome Date: Thu, 19 Sep 2019 01:13:18 +0000 (-0400) Subject: Leafdecay: Use param2 ~= 1 instead of param2 == 0 X-Git-Tag: 5.1.0~16 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=00f9287075cd3d1f42cc626944bd110402fe08c2;p=oweals%2Fminetest_game.git Leafdecay: Use param2 ~= 1 instead of param2 == 0 --- diff --git a/mods/default/functions.lua b/mods/default/functions.lua index 2a4fdfeb..9d6c5937 100644 --- 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