Skip to content

Commit 00f9287

Browse files
leucomeparamat
authored andcommittedSep 19, 2019
Leafdecay: Use param2 ~= 1 instead of param2 == 0
1 parent cbb0529 commit 00f9287

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎mods/default/functions.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ local function leafdecay_after_destruct(pos, oldnode, def)
427427
vector.add(pos, def.radius), def.leaves)) do
428428
local node = minetest.get_node(v)
429429
local timer = minetest.get_node_timer(v)
430-
if node.param2 == 0 and not timer:is_started() then
430+
if node.param2 ~= 1 and not timer:is_started() then
431431
timer:start(math.random(20, 120) / 10)
432432
end
433433
end

0 commit comments

Comments
 (0)