Depollute the code - 04 - bloody brown mushrooms
This commit is contained in:
parent
53a9a5903c
commit
af3378d412
|
@ -239,7 +239,10 @@ function flowers.mushroom_spread(pos, node)
|
||||||
end
|
end
|
||||||
local pos2 = positions[math.random(#positions)]
|
local pos2 = positions[math.random(#positions)]
|
||||||
pos2.y = pos2.y + 1
|
pos2.y = pos2.y + 1
|
||||||
if minetest.get_node_light(pos2, 0.5) <= 3 then
|
if minetest.get_node_light(pos, 0.5) > 3 then
|
||||||
|
if minetest.get_node_light(pos, nil) == 15 then
|
||||||
|
minetest.remove_node(pos)
|
||||||
|
end
|
||||||
minetest.set_node(pos2, {name = node.name})
|
minetest.set_node(pos2, {name = node.name})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue