using mulch on dry_dirt makes it dry_dirt_with_dry_grass

This commit is contained in:
tenplus1 2023-08-10 18:56:27 +01:00
parent 2db3f4b026
commit 862fd2bb1c

View File

@ -88,6 +88,7 @@ minetest.after(0.1, function()
if def.groups
and def.groups.flower
and not node:find("waterlily")
and not node:find("seaweed")
and not node:find("xdecor:potted_")
and not node:find("df_farming:") then
flowers[#flowers + 1] = node
@ -519,6 +520,14 @@ function bonemeal:on_use(pos, strength, node)
particle_effect(pos)
return true
elseif node.name == "default:dry_dirt" and strength == 1 then
minetest.set_node(pos, {name = "default:dry_dirt_with_dry_grass"})
particle_effect(pos)
return true
end