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 4770585685
commit 8b5d2b33cb

View file

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