TU24: Name of mobs, which are renamed using a name tag is now always visible, even when not looking at it up close.

This commit is contained in:
GabsPuNs
2026-06-03 23:40:43 -04:00
parent b0b83f6b63
commit 77ad7e0e90
2 changed files with 12 additions and 46 deletions

View File

@@ -33,7 +33,7 @@ void MobRenderer::render(shared_ptr<Entity> _mob, double x, double y, double z,
bool MobRenderer::shouldShowName(shared_ptr<LivingEntity> mob)
{
return LivingEntityRenderer::shouldShowName(mob) && (mob->shouldShowName() || dynamic_pointer_cast<Mob>(mob)->hasCustomName() && mob == entityRenderDispatcher->crosshairPickMob);
return LivingEntityRenderer::shouldShowName(mob) && (mob->shouldShowName() || dynamic_pointer_cast<Mob>(mob)->hasCustomName()); //TU24: Removed && mob == entityRenderDispatcher->crosshairPickMob
}
void MobRenderer::renderLeash(shared_ptr<Mob> entity, double x, double y, double z, float rot, float a)