mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-26 09:59:33 +01:00
Reduce excessive item pickup sound distance
This commit is contained in:
parent
8cad041c89
commit
5d1c38cb5f
1 changed files with 4 additions and 4 deletions
|
@ -73,8 +73,8 @@ minetest.register_globalstep(function(dtime)
|
|||
inv:add_item("main", ItemStack(object:get_luaentity().itemstring))
|
||||
minetest.sound_play("item_drop_pickup", {
|
||||
pos = pos,
|
||||
max_hear_distance = 100,
|
||||
gain = 10.0,
|
||||
max_hear_distance = 16,
|
||||
gain = 1.0,
|
||||
})
|
||||
check_pickup_achievements(object, player)
|
||||
object:get_luaentity().itemstring = ""
|
||||
|
@ -123,8 +123,8 @@ minetest.register_globalstep(function(dtime)
|
|||
if object:get_luaentity().itemstring ~= "" then
|
||||
minetest.sound_play("item_drop_pickup", {
|
||||
pos = pos,
|
||||
max_hear_distance = 100,
|
||||
gain = 10.0,
|
||||
max_hear_distance = 16,
|
||||
gain = 1.0,
|
||||
})
|
||||
end
|
||||
check_pickup_achievements(object, player)
|
||||
|
|
Loading…
Reference in a new issue