Change fallback armor (un)equip sounds
This commit is contained in:
parent
89afec17b1
commit
364a4152ac
5 changed files with 21 additions and 1 deletions
|
@ -232,7 +232,7 @@ armor.play_equip_sound = function(self, player, stack, unequip)
|
|||
local snd = def.sounds and def.sounds["_mcl_armor_"..estr]
|
||||
if not snd then
|
||||
-- Fallback sound
|
||||
snd = { name = "mcl_armor_"..estr.."_iron" }
|
||||
snd = { name = "mcl_armor_"..estr.."_generic" }
|
||||
end
|
||||
if snd then
|
||||
minetest.sound_play(snd, {object=player, gain=0.5, max_hear_distance=8})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue