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