mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-22 04:13:10 +01:00
(Backport) Fixed: Model attributes aren't updated for the first person's view
This commit is contained in:
parent
e6ded72a43
commit
452817778c
1 changed files with 2 additions and 2 deletions
|
@ -49,8 +49,6 @@ public class RenderPony<T extends EntityLivingBase> {
|
||||||
public void preRenderCallback(T entity, float ticks) {
|
public void preRenderCallback(T entity, float ticks) {
|
||||||
updateModel(entity);
|
updateModel(entity);
|
||||||
|
|
||||||
ponyModel.updateLivingState(entity, pony);
|
|
||||||
|
|
||||||
float s = getScaleFactor();
|
float s = getScaleFactor();
|
||||||
GlStateManager.scale(s, s, s);
|
GlStateManager.scale(s, s, s);
|
||||||
enableModelRenderProfile();
|
enableModelRenderProfile();
|
||||||
|
@ -140,6 +138,8 @@ public class RenderPony<T extends EntityLivingBase> {
|
||||||
public void updateModel(T entity) {
|
public void updateModel(T entity) {
|
||||||
pony = renderer.getEntityPony(entity);
|
pony = renderer.getEntityPony(entity);
|
||||||
playerModel.apply(pony.getMetadata());
|
playerModel.apply(pony.getMetadata());
|
||||||
|
|
||||||
|
ponyModel.updateLivingState(entity, pony);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IPony getPony(T entity) {
|
public IPony getPony(T entity) {
|
||||||
|
|
Loading…
Reference in a new issue