#198 Fix a crash, step 27

This commit is contained in:
kay27 2022-02-20 06:24:30 +04:00
parent ae63e32048
commit b518bfd5c2
1 changed files with 2 additions and 1 deletions

View File

@ -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")