Depollute the code

This commit is contained in:
Zweihorn 2019-05-18 10:26:52 +02:00
parent 34d9499f3e
commit ed6a047adf
2 changed files with 2 additions and 3 deletions

View File

@ -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", ""}
} }
}) })

View File

@ -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