1
0
Fork 0

Make jukeboxes play music to players within 64 nodes on start

This commit is contained in:
PrairieWind 2023-04-06 15:45:20 -06:00
parent 1b4d9cfab7
commit fb895ce17c
1 changed files with 2 additions and 1 deletions

View File

@ -105,7 +105,8 @@ local function play_record(pos, itemstack, player)
end end
active_tracks[cname] = minetest.sound_play(mcl_jukebox.registered_records[name][5], { active_tracks[cname] = minetest.sound_play(mcl_jukebox.registered_records[name][5], {
to_player = cname, to_player = cname,
gain = 1, pos = pos,
max_hear_distance = 64,
}) })
now_playing(player, name) now_playing(player, name)
return true return true