Changed so global doesn't stop player sound

This commit is contained in:
DonBatman 2016-04-04 06:53:52 -07:00
parent 07633eb1f0
commit 67b92d19ea
2 changed files with 8 additions and 9 deletions

View File

@ -40,3 +40,5 @@ Chat Commands
Licence - DWYWPL
Mod by Tenplus1 and Don

View File

@ -277,15 +277,12 @@ and block_sound then
--print ("handler stopped for " .. p)
end
if sound_pa ~= "All" then
-- only player hears this sound
handler[p] = minetest.sound_play(block_sound, {
max_hear_distance = sound_dis,
to_player = p,
gain = sound_gain,
})
end
-- only player hears this sound
handler[p] = minetest.sound_play(block_sound, {
max_hear_distance = sound_dis,
to_player = p,
gain = sound_gain,
})
end