forked from MineClone5/MineClone5
#198 Fix a crash, step 2
This commit is contained in:
parent
200536b416
commit
eaa8df9e55
|
@ -102,8 +102,8 @@ function mcl_bossbars.update_boss(object, name, color)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_on_joinplayer(function(player)
|
minetest.register_on_authplayer(function(name, ip, is_success)
|
||||||
local name = player:get_player_name()
|
if not is_success then return end
|
||||||
mcl_bossbars.huds[name] = {}
|
mcl_bossbars.huds[name] = {}
|
||||||
mcl_bossbars.bars[name] = {}
|
mcl_bossbars.bars[name] = {}
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue