From 617d94c8038e3ff035eaeef7ccdfa4f442feb873 Mon Sep 17 00:00:00 2001 From: stujones11 Date: Sat, 10 Feb 2018 09:42:33 +0000 Subject: [PATCH] Position entity nametags relative to selection-box (#7031) --- src/content_cao.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content_cao.cpp b/src/content_cao.cpp index affa092e7..2d43f4b3c 100644 --- a/src/content_cao.cpp +++ b/src/content_cao.cpp @@ -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); -- 2.25.1