Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Position entity nametags relative to selection-box (#7031)
  • Loading branch information
stujones11 authored and SmallJoker committed Feb 10, 2018
1 parent af89a25 commit 617d94c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content_cao.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 617d94c

Please sign in to comment.