* Make the model update the sneaking variable properly.

This commit is contained in:
iProgramInCpp 2023-08-02 22:51:51 +03:00
parent a62ade1d99
commit 106dbb0656

View file

@ -110,7 +110,16 @@ void EntityRenderDispatcher::render(Entity* entity, float a, float b, float c, f
{
EntityRenderer* pRenderer = getRenderer(entity);
if (pRenderer)
{
#ifndef ORIGINAL_CODE
if (pRenderer == &m_HumanoidMobRenderer)
m_HumanoidMobRenderer.m_pHumanoidModel->field_10BE = entity->isSneaking();
else
m_HumanoidMobRenderer.m_pHumanoidModel->field_10BE = false;
#endif
pRenderer->render(entity, a, b, c, d, e);
}
}
void EntityRenderDispatcher::setLevel(Level* level)