forked from MineClone5/MineClone5
#198 Fix a crash, step 27
This commit is contained in:
parent
ae63e32048
commit
b518bfd5c2
|
@ -157,13 +157,14 @@ function mcl_title.set(player, type, data)
|
||||||
end
|
end
|
||||||
|
|
||||||
function mcl_title.remove(player, type)
|
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], "text", "")
|
||||||
--player:hud_change(huds_idx[type][player], "style", 0) --no styling
|
--player:hud_change(huds_idx[type][player], "style", 0) --no styling
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function mcl_title.clear(player)
|
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, "title")
|
||||||
mcl_title.remove(player, "subtitle")
|
mcl_title.remove(player, "subtitle")
|
||||||
mcl_title.remove(player, "actionbar")
|
mcl_title.remove(player, "actionbar")
|
||||||
|
|
Loading…
Reference in New Issue