forked from VoxeLibre/VoxeLibre
Reduce excessive item pickup sound distance
This commit is contained in:
parent
8cad041c89
commit
5d1c38cb5f
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue