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

View file

@ -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