Make shield block sounds not play across infinite distance

This commit is contained in:
PrairieWind 2023-04-04 10:58:52 -06:00 committed by Gitea
parent d0f7d7c90d
commit 5165730da8

View file

@ -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)