Skip to content

Commit

Permalink
Tool break: Reduce gain of break sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
paramat committed Nov 20, 2016
1 parent 681d127 commit c6ca7a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/game/item.lua
Expand Up @@ -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
Expand Down

0 comments on commit c6ca7a8

Please sign in to comment.