From da26aef53344f21c53b92f7ff97bbf4e338b84ec Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 17 Aug 2018 18:09:46 +0200 Subject: [PATCH] Fixed plane renderer not accounting for scaling on the z axes --- .../java/com/minelittlepony/render/plane/PlaneRenderer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/minelittlepony/render/plane/PlaneRenderer.java b/src/main/java/com/minelittlepony/render/plane/PlaneRenderer.java index d1076f90..415259d9 100644 --- a/src/main/java/com/minelittlepony/render/plane/PlaneRenderer.java +++ b/src/main/java/com/minelittlepony/render/plane/PlaneRenderer.java @@ -60,10 +60,10 @@ public class PlaneRenderer extends AbstractPonyRenderer { } public PlaneRenderer addFrontPlane(float offX, float offY, float offZ, int width, int height, float scale) { - return addPlane(offX, offY, offZ, width, height, 0, scale, Face.NORTH); + return addPlane(offX, offY, offZ - scale * 2, width, height, 0, scale, Face.NORTH); } public PlaneRenderer addBackPlane(float offX, float offY, float offZ, int width, int height, float scale) { - return addPlane(offX, offY, offZ, width, height, 0, scale, Face.SOUTH); + return addPlane(offX, offY, offZ + scale * 2, width, height, 0, scale, Face.SOUTH); } }