mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 03:07:32 +01:00
Make shield block sounds not play across infinite distance
This commit is contained in:
parent
d0f7d7c90d
commit
5165730da8
@ -164,7 +164,7 @@ mcl_damage.register_modifier(function(obj, damage, reason)
|
||||
mcl_inventory.update_inventory_formspec(obj)
|
||||
end
|
||||
end
|
||||
minetest.sound_play({name = "mcl_block"})
|
||||
minetest.sound_play({name = "mcl_block"}, {max_hear_distance = 16})
|
||||
return 0
|
||||
end)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user