Fixed Elytras not appearing in the correct place on skin previews.

This commit is contained in:
Sollace 2018-07-28 12:55:36 +02:00
parent 4e77f96fa5
commit a4e329d7fa

View file

@ -2,6 +2,7 @@ package com.minelittlepony.hdskins.gui;
import com.minelittlepony.MineLittlePony;
import com.minelittlepony.ducks.IRenderPony;
import com.minelittlepony.model.BodyPart;
import com.minelittlepony.model.ModelWrapper;
import com.minelittlepony.model.capabilities.IModel;
import com.minelittlepony.model.components.PonyElytra;
@ -115,6 +116,7 @@ public class RenderPonyModel extends RenderPlayerModel<EntityPonyModel> implemen
ModelBase model = renderingAsHuman ? modelElytra : ponyElytra;
if (!renderingAsHuman) {
((IModel)getMainModel()).transform(BodyPart.BODY);
GlStateManager.translate(0, ((IModel)getMainModel()).getRiderYOffset(), 0.125F);
}