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
|
||||
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
local name = player:get_player_name()
|
||||
minetest.register_on_authplayer(function(name, ip, is_success)
|
||||
if not is_success then return end
|
||||
mcl_bossbars.huds[name] = {}
|
||||
mcl_bossbars.bars[name] = {}
|
||||
end)
|
||||
|
|
Loading…
Reference in New Issue