fix: fixed name tag Y-position for tall mobs (wither, iron golem, wither skeleton)
This commit is contained in:
1 parent
b4ed4a1a92
commit
3b4a7e3437
1 file changed
+1
-1
@@ -491,7 +491,7 @@ void LivingEntityRenderer::renderNameTag(shared_ptr<LivingEntity> mob, const wst
|
|||||||
float s = 1 / 60.0f * size;
|
float s = 1 / 60.0f * size;
|
||||||
|
|
||||||
glPushMatrix();
|
glPushMatrix();
|
||||||
glTranslatef((float) x, (float) y + 2.3f, (float) z);
|
glTranslatef((float) x, (float) y + mob->bbHeight + 0.5f, (float) z);
|
||||||
glNormal3f(0, 1, 0);
|
glNormal3f(0, 1, 0);
|
||||||
|
|
||||||
glRotatef(-this->entityRenderDispatcher->playerRotY, 0, 1, 0);
|
glRotatef(-this->entityRenderDispatcher->playerRotY, 0, 1, 0);
|
||||||
|
|||||||
Reference in new issue
Block a user