1
0
Fork 0

Fix jukebox "Now playing" not disappearing

objects
Wuzzy 2017-01-20 03:28:53 +01:00
parent 326b0971f5
commit 1275af7903
1 changed files with 2 additions and 1 deletions

View File

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