Depollute the code - 02

This commit is contained in:
Zweihorn 2019-05-18 10:38:34 +02:00
parent ad65ef6d3f
commit feea0b2e55
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ function flowers.mushroom_spread(pos, node)
end
local pos2 = positions[math.random(#positions)]
pos2.y = pos2.y + 1
if minetest.get_node_light(pos, 0.5) <= 3 then
if minetest.get_node_light(pos2, 0.5) <= 3 then
minetest.set_node(pos2, {name = node.name})
end
end