mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-16 16:11:06 +01:00
Make jukeboxes play music to players within 64 nodes on start
This commit is contained in:
parent
1b4d9cfab7
commit
fb895ce17c
1 changed files with 2 additions and 1 deletions
|
@ -105,7 +105,8 @@ local function play_record(pos, itemstack, player)
|
|||
end
|
||||
active_tracks[cname] = minetest.sound_play(mcl_jukebox.registered_records[name][5], {
|
||||
to_player = cname,
|
||||
gain = 1,
|
||||
pos = pos,
|
||||
max_hear_distance = 64,
|
||||
})
|
||||
now_playing(player, name)
|
||||
return true
|
||||
|
|
Loading…
Reference in a new issue