Changed so global doesn't stop player sound
This commit is contained in:
parent
07633eb1f0
commit
67b92d19ea
@ -40,3 +40,5 @@ Chat Commands
|
|||||||
|
|
||||||
Licence - DWYWPL
|
Licence - DWYWPL
|
||||||
|
|
||||||
|
Mod by Tenplus1 and Don
|
||||||
|
|
||||||
|
15
init.lua
15
init.lua
@ -277,15 +277,12 @@ and block_sound then
|
|||||||
--print ("handler stopped for " .. p)
|
--print ("handler stopped for " .. p)
|
||||||
end
|
end
|
||||||
|
|
||||||
if sound_pa ~= "All" then
|
-- only player hears this sound
|
||||||
|
handler[p] = minetest.sound_play(block_sound, {
|
||||||
-- only player hears this sound
|
max_hear_distance = sound_dis,
|
||||||
handler[p] = minetest.sound_play(block_sound, {
|
to_player = p,
|
||||||
max_hear_distance = sound_dis,
|
gain = sound_gain,
|
||||||
to_player = p,
|
})
|
||||||
gain = sound_gain,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user