Item drop sounds range fix

This commit is contained in:
RealBadAngel 2013-04-20 07:43:49 +02:00
parent 9b76f5cf27
commit 5db0041896
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ minetest.register_globalstep(function(dtime)
if obj.timer > time_pick then
inv:add_item("main", ItemStack(obj.itemstring))
if obj.itemstring ~= "" then
minetest.sound_play("item_drop_pickup")
minetest.sound_play("item_drop_pickup",gain = 1.0, max_hear_distance = 10)
end
if object:get_luaentity() then
object:get_luaentity().itemstring = ""

View File

@ -104,7 +104,7 @@ minetest.register_entity(":__builtin:item", {
local name = minetest.env:get_node(p).name
if name == "default:lava_flowing" or name == "default:lava_source" then
minetest.sound_play("builtin_item_lava", {pos=self.object:getpos()})
minetest.sound_play("builtin_item_lava", {pos=self.object:getpos()},gain = 1.0, max_hear_distance = 10)
self.object:remove()
return
end