diff --git a/beanpole.lua b/beanpole.lua index 4c14b80..cda736f 100644 --- a/beanpole.lua +++ b/beanpole.lua @@ -21,7 +21,7 @@ minetest.register_craftitem("farming:beans", { if nodename == "farming:beanpole" then minetest.set_node(pointed_thing.under, {name = "farming:beanpole_1"}) - minetest.sound_play("default_place_node", {gain = 1.0}) + minetest.sound_play("default_place_node", {pos = pointed_thing.above, gain = 1.0}) else return end diff --git a/cocoa.lua b/cocoa.lua index b618114..4e62cee 100644 --- a/cocoa.lua +++ b/cocoa.lua @@ -24,7 +24,7 @@ function place_cocoa(itemstack, placer, pointed_thing, plantname) -- add the node and remove 1 item from the itemstack minetest.set_node(pt.above, {name = plantname}) - minetest.sound_play("default_place_node", {gain = 1.0}) + minetest.sound_play("default_place_node", {pos = pt.above, gain = 1.0}) if not minetest.setting_getbool("creative_mode") then diff --git a/grapes.lua b/grapes.lua index ffd5698..9c93016 100644 --- a/grapes.lua +++ b/grapes.lua @@ -16,7 +16,7 @@ minetest.register_craftitem("farming:grapes", { if nodename == "farming:trellis" then minetest.set_node(pointed_thing.under, {name = "farming:grapes_1"}) - minetest.sound_play("default_place_node", {gain = 1.0}) + minetest.sound_play("default_place_node", {pos = pointed_thing.above, gain = 1.0}) else return end diff --git a/init.lua b/init.lua index f8f67b6..0194360 100644 --- a/init.lua +++ b/init.lua @@ -578,7 +578,7 @@ function farming.place_seed(itemstack, placer, pointed_thing, plantname) minetest.set_node(pt.above, {name = plantname, param2 = 1}) - minetest.sound_play("default_place_node", {gain = 1.0}) + minetest.sound_play("default_place_node", {pos = pt.above, gain = 1.0}) if not minetest.setting_getbool("creative_mode") then