1
0
Fork 0

Reduce excessive item pickup sound distance

This commit is contained in:
Wuzzy 2017-06-10 21:20:41 +02:00
parent 8cad041c89
commit 5d1c38cb5f
1 changed files with 4 additions and 4 deletions

View File

@ -73,8 +73,8 @@ minetest.register_globalstep(function(dtime)
inv:add_item("main", ItemStack(object:get_luaentity().itemstring)) inv:add_item("main", ItemStack(object:get_luaentity().itemstring))
minetest.sound_play("item_drop_pickup", { minetest.sound_play("item_drop_pickup", {
pos = pos, pos = pos,
max_hear_distance = 100, max_hear_distance = 16,
gain = 10.0, gain = 1.0,
}) })
check_pickup_achievements(object, player) check_pickup_achievements(object, player)
object:get_luaentity().itemstring = "" object:get_luaentity().itemstring = ""
@ -123,8 +123,8 @@ minetest.register_globalstep(function(dtime)
if object:get_luaentity().itemstring ~= "" then if object:get_luaentity().itemstring ~= "" then
minetest.sound_play("item_drop_pickup", { minetest.sound_play("item_drop_pickup", {
pos = pos, pos = pos,
max_hear_distance = 100, max_hear_distance = 16,
gain = 10.0, gain = 1.0,
}) })
end end
check_pickup_achievements(object, player) check_pickup_achievements(object, player)