mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-26 22:38:00 +01:00
Fixed Elytras not appearing in the correct place on skin previews.
This commit is contained in:
parent
4770585685
commit
8b5d2b33cb
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
package com.minelittlepony.hdskins.gui;
|
package com.minelittlepony.hdskins.gui;
|
||||||
|
|
||||||
import com.minelittlepony.MineLittlePony;
|
import com.minelittlepony.MineLittlePony;
|
||||||
|
import com.minelittlepony.model.BodyPart;
|
||||||
import com.minelittlepony.model.ModelWrapper;
|
import com.minelittlepony.model.ModelWrapper;
|
||||||
import com.minelittlepony.model.capabilities.IModel;
|
import com.minelittlepony.model.capabilities.IModel;
|
||||||
import com.minelittlepony.model.components.PonyElytra;
|
import com.minelittlepony.model.components.PonyElytra;
|
||||||
|
@ -82,6 +83,7 @@ public class RenderPonyModel extends RenderPlayerModel<EntityPonyModel> {
|
||||||
ModelBase model = renderingAsHuman ? modelElytra : ponyElytra;
|
ModelBase model = renderingAsHuman ? modelElytra : ponyElytra;
|
||||||
|
|
||||||
if (!renderingAsHuman) {
|
if (!renderingAsHuman) {
|
||||||
|
((IModel)getMainModel()).transform(BodyPart.BODY);
|
||||||
GlStateManager.translate(0, ((IModel)getMainModel()).getRiderYOffset(), 0.125F);
|
GlStateManager.translate(0, ((IModel)getMainModel()).getRiderYOffset(), 0.125F);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue