diff --git a/mods/HUD/mcl_title/init.lua b/mods/HUD/mcl_title/init.lua index 2ea1571c8..905707be4 100644 --- a/mods/HUD/mcl_title/init.lua +++ b/mods/HUD/mcl_title/init.lua @@ -157,13 +157,14 @@ function mcl_title.set(player, type, data) end function mcl_title.remove(player, type) - if player then + if player and mcl_util and mcl_util.is_player(player) then player:hud_change(huds_idx[type][player], "text", "") --player:hud_change(huds_idx[type][player], "style", 0) --no styling end end function mcl_title.clear(player) + if not mcl_util or not mcl_util.is_player(player) then return end mcl_title.remove(player, "title") mcl_title.remove(player, "subtitle") mcl_title.remove(player, "actionbar")