diff options
author | stujones11 <stujones111@gmail.com> | 2018-02-10 09:42:33 +0000 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2018-02-10 10:42:33 +0100 |
commit | 617d94c8038e3ff035eaeef7ccdfa4f442feb873 (patch) | |
tree | 7d64aa22f5d0867407529eebf6cf0e2b3e437b35 | |
parent | af89a25ff3527ccf0740926fe0b797c4403840b0 (diff) | |
download | minetest-617d94c8038e3ff035eaeef7ccdfa4f442feb873.tar.gz minetest-617d94c8038e3ff035eaeef7ccdfa4f442feb873.tar.bz2 minetest-617d94c8038e3ff035eaeef7ccdfa4f442feb873.zip |
Position entity nametags relative to selection-box (#7031)
-rw-r--r-- | src/content_cao.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |