1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2024-12-25 18:20:19 +01:00

Fixed sound positions on placing crops

This commit is contained in:
TenPlus1 2016-04-02 13:42:14 +01:00
parent e974390844
commit 61088aeb38
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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