mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-29 18:16:27 -04:00
Depollute the code - 04a - bloody spaces & brown mushrooms
This commit is contained in:
parent
5c82aa3d14
commit
3e54b6e430
1 changed files with 4 additions and 4 deletions
|
@ -241,10 +241,10 @@ 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(pos, nil) == 15 then
|
||||
minetest.remove_node(pos)
|
||||
end
|
||||
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})
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue