From 33296e336c2caee37eb44fa488148333381e58d0 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 4df35527..159e9dd0 100644 --- a/src/main/java/com/minelittlepony/hdskins/gui/RenderPonyModel.java +++ b/src/main/java/com/minelittlepony/hdskins/gui/RenderPonyModel.java @@ -52,6 +52,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 } }