mirror of
https://github.com/minetest/minetest.git
synced 2024-09-27 15:00:30 +02: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) {
|
if (node && !m_prop.nametag.empty() && !m_is_local_player) {
|
||||||
// Add nametag
|
// Add nametag
|
||||||
v3f pos;
|
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_nametag = m_client->getCamera()->addNametag(node,
|
||||||
m_prop.nametag, m_prop.nametag_color,
|
m_prop.nametag, m_prop.nametag_color,
|
||||||
pos);
|
pos);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user