projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
681d127
)
Tool break: Reduce gain of break sounds
author
paramat
<mat.gregory@virginmedia.com>
Sat, 19 Nov 2016 22:58:11 +0000
(22:58 +0000)
committer
paramat
<mat.gregory@virginmedia.com>
Sun, 20 Nov 2016 04:43:09 +0000
(
04:43
+0000)
builtin/game/item.lua
patch
|
blob
|
history
diff --git
a/builtin/game/item.lua
b/builtin/game/item.lua
index a2fdbc1f4600f90e6b6aaea0372a74b1f68fab19..bf456a4e07bfe28988618656b32d6f8fb4fa243a 100644
(file)
--- a/
builtin/game/item.lua
+++ b/
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