mirror of
https://git.neolegacy.dev/pieeebot/cafeberry.git
synced 2026-09-24 22:22:07 +00:00
fix(TU20): fixed name tag Y-position for tall mobs (wither, iron golem, wither skeleton) (#4)
title Reviewed-on: https://git.neolegacy.dev/pieeebot/mc_pieLCE/pulls/4 Co-authored-by: qloak <[email protected]> Co-committed-by: qloak <[email protected]>
This commit is contained in:
@@ -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