Changed so global doesn't stop player sound
This commit is contained in:
parent
07633eb1f0
commit
67b92d19ea
15
init.lua
15
init.lua
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user