From 0dcd925ae34e685b7628f0373ad80e5485b6db9c Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 28 Jul 2018 12:30:46 +0200 Subject: [PATCH] Center the preview models so rotating isn't as janked --- .../java/com/minelittlepony/hdskins/gui/RenderPonyModel.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/minelittlepony/hdskins/gui/RenderPonyModel.java b/src/main/java/com/minelittlepony/hdskins/gui/RenderPonyModel.java index a0536b5c..379a8b07 100644 --- a/src/main/java/com/minelittlepony/hdskins/gui/RenderPonyModel.java +++ b/src/main/java/com/minelittlepony/hdskins/gui/RenderPonyModel.java @@ -59,6 +59,8 @@ public class RenderPonyModel extends RenderPlayerModel implemen super.preRenderCallback(entity, ticks); } else { renderPony.preRenderCallback(entity, ticks); + + GlStateManager.translate(0, 0, -entity.width / 2); // move us to the center of the shadow } }