#198 Fix a crash, step 2

This commit is contained in:
kay27 2022-02-14 01:23:01 +00:00
parent 200536b416
commit eaa8df9e55
1 changed files with 2 additions and 2 deletions

View File

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