forked from minetest/minetest_game
Leafdecay: Use param2 ~= 1 instead of param2 == 0
This commit is contained in:
parent
cbb0529ace
commit
00f9287075
@ -427,7 +427,7 @@ local function leafdecay_after_destruct(pos, oldnode, def)
|
|||||||
vector.add(pos, def.radius), def.leaves)) do
|
vector.add(pos, def.radius), def.leaves)) do
|
||||||
local node = minetest.get_node(v)
|
local node = minetest.get_node(v)
|
||||||
local timer = minetest.get_node_timer(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)
|
timer:start(math.random(20, 120) / 10)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user