Skip to content

Commit 617d94c

Browse files
stujones11SmallJoker
authored andcommittedFeb 10, 2018
Position entity nametags relative to selection-box (#7031)
1 parent af89a25 commit 617d94c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/content_cao.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ void GenericCAO::addToScene(ITextureSource *tsrc)
636636
if (node && !m_prop.nametag.empty() && !m_is_local_player) {
637637
// Add nametag
638638
v3f pos;
639-
pos.Y = m_prop.collisionbox.MaxEdge.Y + 0.3f;
639+
pos.Y = m_prop.selectionbox.MaxEdge.Y + 0.3f;
640640
m_nametag = m_client->getCamera()->addNametag(node,
641641
m_prop.nametag, m_prop.nametag_color,
642642
pos);

0 commit comments

Comments
 (0)
Please sign in to comment.