Update functions.lua

This commit is contained in:
leucome 2019-09-17 20:08:07 -04:00 committed by GitHub
parent 9747d1fda2
commit 9c66efd667
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ~=1 and not timer:is_started() then -- Use ~=1 to make the other value available (fix luscious mod)
if node.param2 ~= 1 and not timer:is_started() then
timer:start(math.random(20, 120) / 10)
end
end