Make jukebox sound 3d and play on all clients

This commit is contained in:
Artem Arbatsky 2021-09-24 16:44:25 +05:00
parent 0b6420c9f5
commit 5476bf2eaf
1 changed files with 2 additions and 2 deletions

View File

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