Fix mob nametag position to match correct height offset #422 (#440)

This commit is contained in:
ModMaker101
2026-03-04 12:24:42 -05:00
committed by GitHub
parent 1dc8a005ed
commit 870d3e4b68

View File

@@ -487,11 +487,11 @@ void LivingEntityRenderer::renderNameTag(shared_ptr<LivingEntity> mob, const wst
Font *font = getFont();
float size = 1.60f;
float s = 1 / 60.0f * size;
constexpr float size = 1.60f;
constexpr float s = 1 / 60.0f * size;
glPushMatrix();
glTranslatef((float) x + 0, (float) y + 2.3f, (float) z);
glTranslatef(static_cast<float>(x) + 0, static_cast<float>(y) + mob->bbHeight + 0.5f, static_cast<float>(z));
glNormal3f(0, 1, 0);
glRotatef(-this->entityRenderDispatcher->playerRotY, 0, 1, 0);