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 8aa8ae81a7
commit a1fa6a2ce8

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;
@ -116,6 +117,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);
}