Skip to content
Permalink
Browse files
Position entity nametags relative to selection-box (#7031)
  • Loading branch information
stujones11 authored and SmallJoker committed Feb 10, 2018
1 parent af89a25 commit 617d94c8038e3ff035eaeef7ccdfa4f442feb873
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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);

0 comments on commit 617d94c

Please sign in to comment.