Depollute the code
This commit is contained in:
parent
23c20c32b0
commit
ad65ef6d3f
|
@ -118,7 +118,7 @@ minetest.register_craft( {
|
|||
recipe = {
|
||||
{"farming:string", "farming:string"},
|
||||
{"farming:string", "farming:string"},
|
||||
{"default:stick", ""}
|
||||
{"group:stick", ""}
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
@ -240,8 +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 and
|
||||
minetest.get_node_light(pos2, 0.5) <= 3 then
|
||||
if minetest.get_node_light(pos, 0.5) <= 3 then
|
||||
minetest.set_node(pos2, {name = node.name})
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue