Guard against player quitting during login process
This commit is contained in:
parent
8de5b84e20
commit
7665c4d26d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user