Tool break: Reduce gain of break sounds
authorparamat <mat.gregory@virginmedia.com>
Sat, 19 Nov 2016 22:58:11 +0000 (22:58 +0000)
committerparamat <mat.gregory@virginmedia.com>
Sun, 20 Nov 2016 04:43:09 +0000 (04:43 +0000)
builtin/game/item.lua

index a2fdbc1f4600f90e6b6aaea0372a74b1f68fab19..bf456a4e07bfe28988618656b32d6f8fb4fa243a 100644 (file)
@@ -475,7 +475,7 @@ function core.node_dig(pos, node, digger)
                if not core.setting_getbool("creative_mode") then
                        wielded:add_wear(dp.wear)
                        if wielded:get_count() == 0 and wdef.sound and wdef.sound.breaks then
-                               core.sound_play(wdef.sound.breaks, {pos = pos, gain = 1.0})
+                               core.sound_play(wdef.sound.breaks, {pos = pos, gain = 0.5})
                        end
                end
        end