mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 04:45:09 +00:00
Fix jukebox "Now playing" not disappearing
This commit is contained in:
parent
326b0971f5
commit
1275af7903
1 changed files with 2 additions and 1 deletions
|
@ -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 },
|
||||
|
|
Loading…
Reference in a new issue