Guard against player quitting during login process

This commit is contained in:
Aaron Suen 2022-10-19 23:16:41 -04:00
parent 8de5b84e20
commit 7665c4d26d

View File

@ -23,8 +23,9 @@ local function nonzero(t)
for _, v in pairs(t) do if v ~= 0 then return true end end
end
local function updatevisible(player)
local pname = player:get_player_name()
local props = player:get_properties()
if not props then return end
local pname = player:get_player_name()
local atts = player:get_nametag_attributes()
local isvis = nonzero(props.visual_size)