Play sound after placing seed

This commit is contained in:
Wuzzy 2017-03-15 00:04:51 +01:00
parent 56a1a98ce6
commit ca9f48963c
1 changed files with 1 additions and 1 deletions

View File

@ -58,8 +58,8 @@ function mcl_farming:place_seed(itemstack, placer, pointed_thing, plantname)
pos= {x=pt.above.x, y=pt.above.y, z=pt.above.z}
local place_s = minetest.get_node(pos)
if string.find(farmland.name, "mcl_farming:soil") and string.find(place_s.name, "air") then
minetest.sound_play(minetest.registered_nodes[plantname].sounds.place, {pos = pos})
minetest.add_node(pos, {name=plantname, param2 = minetest.registered_nodes[plantname].place_param2})
else
return