mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-23 11:42:31 +01:00
implement la's TU22 patch file
This commit is contained in:
1 parent
f255035afd
commit
beec56d3be
22 files changed
+87
-26
No files matched your search
@@ -470,7 +470,7 @@ void PlayerRenderer::additionalRendering(shared_ptr<LivingEntity> _mob, float a)
|
||||
}
|
||||
}
|
||||
|
||||
void PlayerRenderer::renderNameTags(shared_ptr<LivingEntity> player, double x, double y, double z, wstring msg, float scale, double dist)
|
||||
void PlayerRenderer::renderNameTags(shared_ptr<LivingEntity> player, double x, double y, double z, const wstring &msg, float scale, double dist)
|
||||
{
|
||||
#if 0
|
||||
if (dist < 10 * 10)
|
||||
@@ -496,7 +496,17 @@ void PlayerRenderer::renderNameTags(shared_ptr<LivingEntity> player, double x, d
|
||||
}
|
||||
#endif
|
||||
|
||||
LivingEntityRenderer::renderNameTags(player, x, y, z, msg, scale, dist);
|
||||
shared_ptr<Player> pPlayer = dynamic_pointer_cast<Player>(player);
|
||||
int color = getNametagColour(pPlayer->getPlayerIndex());
|
||||
|
||||
if (player->isSleeping())
|
||||
{
|
||||
renderNameTag(player, msg, x, y - 1.5f, z, 64, color);
|
||||
}
|
||||
else
|
||||
{
|
||||
renderNameTag(player, msg, x, y, z, 64, color);
|
||||
}
|
||||
}
|
||||
|
||||
void PlayerRenderer::scale(shared_ptr<LivingEntity> player, float a)
|
||||
|
||||
Reference in new issue
Block a user