mirror of
https://github.com/ReMinecraftPE/mcpe.git
synced 2025-01-23 09:44:34 -05:00
* Make the model update the sneaking variable properly.
This commit is contained in:
parent
a62ade1d99
commit
106dbb0656
1 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue