Item drop sounds range fix
authorRealBadAngel <mk@realbadangel.pl>
Sat, 20 Apr 2013 05:43:49 +0000 (07:43 +0200)
committerRealBadAngel <mk@realbadangel.pl>
Sat, 20 Apr 2013 05:45:14 +0000 (07:45 +0200)
item_drop/init.lua
item_drop/item_entity.lua

index 131265c2acb4b3862816fd29c85bf96754264fcb..5033eca9d7b8eefd4baaf6df2f3e26430377559c 100644 (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 = ""
index 5c5076d3dace526c387c20a4c7e6b0bf05c4eda0..83c7ba192a4ec925d55eaa5d226f0f44686b6c80 100644 (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