if not sound then
if should_have_sound then
fire.sounds[p0_hash] = {
- handle = minetest.sound_play(wanted_sound, {pos=cp, loop=true}),
+ handle = minetest.sound_play(wanted_sound, {pos=cp, max_hear_distance = 16, loop=true}),
name = wanted_sound.name,
}
end
elseif sound.name ~= wanted_sound.name then
minetest.sound_stop(sound.handle)
fire.sounds[p0_hash] = {
- handle = minetest.sound_play(wanted_sound, {pos=cp, loop=true}),
+ handle = minetest.sound_play(wanted_sound, {pos=cp, max_hear_distance = 16, loop=true}),
name = wanted_sound.name,
}
end