Seeds: use leaf sounds by default.

There were no sounds attached to farming's seeds, causing placement
and digging/walking on them to be silent.

The sounds are quite soft.
This commit is contained in:
Auke Kok 2016-03-31 22:06:13 -07:00
parent 9a6cb2d7c8
commit c44260d0ba

View file

@ -220,9 +220,12 @@ farming.register_plant = function(name, def)
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
},
fertility = def.fertility,
sounds = default.node_sound_leaves_defaults({
place = {name = "default_place_node", gain = 0.25}
}),
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, mname .. ":seed_" .. pname)
end
end,
})
-- Register harvest