mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 22:52:25 +01:00
Position entity nametags relative to selection-box (#7031)
This commit is contained in:
parent
af89a25ff3
commit
617d94c803
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user