From ca9f48963c1bef74e5c6dd01b9ba921798dca19c Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 15 Mar 2017 00:04:51 +0100 Subject: [PATCH] Play sound after placing seed --- mods/ITEMS/mcl_farming/shared_functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_farming/shared_functions.lua b/mods/ITEMS/mcl_farming/shared_functions.lua index 6f925cdac6..a143d96122 100644 --- a/mods/ITEMS/mcl_farming/shared_functions.lua +++ b/mods/ITEMS/mcl_farming/shared_functions.lua @@ -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