diff --git a/szutil_stealth/init.lua b/szutil_stealth/init.lua index f940c18..d103a4c 100644 --- a/szutil_stealth/init.lua +++ b/szutil_stealth/init.lua @@ -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)