Skip to content
Permalink
Browse files

Tool break: Reduce gain of break sounds

  • Loading branch information
paramat committed Nov 20, 2016
1 parent 681d127 commit c6ca7a81cc61b51451594fc2da1868aa92ac7dd2
Showing with 1 addition and 1 deletion.
  1. +1 −1 builtin/game/item.lua
@@ -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

0 comments on commit c6ca7a8

Please sign in to comment.