Position entity nametags relative to selection-box (#7031)

This commit is contained in:
stujones11 2018-02-10 09:42:33 +00:00 committed by SmallJoker
parent af89a25ff3
commit 617d94c803

@ -636,7 +636,7 @@ void GenericCAO::addToScene(ITextureSource *tsrc)
if (node && !m_prop.nametag.empty() && !m_is_local_player) {
// Add nametag
v3f pos;
pos.Y = m_prop.collisionbox.MaxEdge.Y + 0.3f;
pos.Y = m_prop.selectionbox.MaxEdge.Y + 0.3f;
m_nametag = m_client->getCamera()->addNametag(node,
m_prop.nametag, m_prop.nametag_color,
pos);