From e7c57c0f61a2d628e7c14701340c53daa1e8fe11 Mon Sep 17 00:00:00 2001 From: Sebastian Hartte Date: Wed, 5 Aug 2020 23:06:09 +0200 Subject: [PATCH] Update the nominal face after the cull face, since updating the cull face will also force the nominal face to the cull face. --- .../java/appeng/client/render/cablebus/QuadRotator.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/appeng/client/render/cablebus/QuadRotator.java b/src/main/java/appeng/client/render/cablebus/QuadRotator.java index d0ea7894c..a742b0616 100644 --- a/src/main/java/appeng/client/render/cablebus/QuadRotator.java +++ b/src/main/java/appeng/client/render/cablebus/QuadRotator.java @@ -97,12 +97,14 @@ public class QuadRotator implements RenderContext.QuadTransform { MutableQuadViewImpl quadImpl = (MutableQuadViewImpl) quad; quadImpl.lightFace(rotation.rotate(quad.lightFace())); - // Transform the nominal face - quad.nominalFace(rotation.rotate(quad.nominalFace())); + // Transform the nominal face, setting the cull face will also overwrite the nominialFace, + // hence saving both first and the order here. + Direction nominalFace = quad.nominalFace(); Direction cullFace = quad.cullFace(); if (cullFace != null) { quad.cullFace(rotation.rotate(cullFace)); } + quad.nominalFace(rotation.rotate(nominalFace)); return true; }