mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Fix
This commit is contained in:
parent
1036b7368e
commit
4d7974dc3b
|
|
@ -199,11 +199,11 @@ void PlayerRenderer::render(shared_ptr<Entity> _mob, double x, double y, double
|
||||||
armorParts1->sneaking = armorParts2->sneaking = humanoidModel->sneaking = mob->isSneaking();
|
armorParts1->sneaking = armorParts2->sneaking = humanoidModel->sneaking = mob->isSneaking();
|
||||||
|
|
||||||
double yp = y - mob->heightOffset;
|
double yp = y - mob->heightOffset;
|
||||||
if (mob->isSneaking() && !mob->instanceof(eTYPE_LOCALPLAYER))
|
if (mob->isSneaking())
|
||||||
{
|
{
|
||||||
yp -= 2 / 16.0f;
|
yp -= 2 / 16.0f; //Added more
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if an idle animation is needed
|
// Check if an idle animation is needed
|
||||||
if(mob->getAnimOverrideBitmask()&(1<<HumanoidModel::eAnim_HasIdle))
|
if(mob->getAnimOverrideBitmask()&(1<<HumanoidModel::eAnim_HasIdle))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue