From 1275af790325d312908b9d0422c2b52f6a9f8193 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 20 Jan 2017 03:28:53 +0100 Subject: [PATCH] Fix jukebox "Now playing" not disappearing --- mods/mcl_jukebox/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/mcl_jukebox/init.lua b/mods/mcl_jukebox/init.lua index ad5866a95b..8723783815 100644 --- a/mods/mcl_jukebox/init.lua +++ b/mods/mcl_jukebox/init.lua @@ -28,10 +28,11 @@ local function now_playing(player, track_id) local hud = active_huds[player:get_player_name()] local text = "Now playing: " .. recorddata[track_id][2] .. "—" .. recorddata[track_id][1] + local id if hud ~= nil then player:hud_change(active_huds[player:get_player_name()], "text", text) else - local id = player:hud_add({ + id = player:hud_add({ hud_elem_type = "text", position = { x=0.5, y=0.8 }, offset = { x=0, y = 0 },