mirror of
https://github.com/minetest/minetest.git
synced 2024-12-28 00:47:29 +01:00
Tool break: Reduce gain of break sounds
This commit is contained in:
parent
681d127ff1
commit
c6ca7a81cc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user