mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 19:27:31 +01:00
Merge pull request 'Make shield block sounds not play across infinite distance' (#3629) from shield_sound_distance into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/3629 Reviewed-by: ancientmarinerdev <ancientmariner_dev@proton.me>
This commit is contained in:
commit
20638c482d
@ -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"}, {pos = obj:get_pos(), max_hear_distance = 16})
|
||||
return 0
|
||||
end)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user