(Backport) Fixed: Model attributes aren't updated for the first person's view

This commit is contained in:
Sollace 2019-07-06 17:37:54 +02:00
parent e6ded72a43
commit 452817778c

View file

@ -49,8 +49,6 @@ public class RenderPony<T extends EntityLivingBase> {
public void preRenderCallback(T entity, float ticks) {
updateModel(entity);
ponyModel.updateLivingState(entity, pony);
float s = getScaleFactor();
GlStateManager.scale(s, s, s);
enableModelRenderProfile();
@ -140,6 +138,8 @@ public class RenderPony<T extends EntityLivingBase> {
public void updateModel(T entity) {
pony = renderer.getEntityPony(entity);
playerModel.apply(pony.getMetadata());
ponyModel.updateLivingState(entity, pony);
}
public IPony getPony(T entity) {