Improve nametag hiding

master
Lars Mueller 2021-02-09 10:52:27 +01:00
parent 7cc04eb2a2
commit d3b7fa2d15
1 changed files with 2 additions and 2 deletions

View File

@ -51,8 +51,8 @@ function make_nametag_invisible(player)
local color = player:get_nametag_attributes().color
color.a = 0
player:set_nametag_attributes{
-- Empty nametag in order to counter poorly made hacked clients
text = "",
-- Null nametag in order to counter poorly made hacked clients (isn't empty, but won't be rendered)
text = "\0",
color = color
}
end