From 5144aa6e635bc96184560c5264fc928dcf0ab29a Mon Sep 17 00:00:00 2001 From: JozsefA Date: Tue, 5 Jan 2021 14:39:11 -0800 Subject: [PATCH] belts scroll the right way, vertical belts still aren't rotated correctly --- .../create/content/contraptions/relays/belt/BeltRenderer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/simibubi/create/content/contraptions/relays/belt/BeltRenderer.java b/src/main/java/com/simibubi/create/content/contraptions/relays/belt/BeltRenderer.java index b0839ffc8..da427d1b2 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/relays/belt/BeltRenderer.java +++ b/src/main/java/com/simibubi/create/content/contraptions/relays/belt/BeltRenderer.java @@ -65,6 +65,7 @@ public class BeltRenderer extends SafeTileEntityRenderer { boolean end = part == BeltPart.END; boolean sideways = beltSlope == BeltSlope.SIDEWAYS; boolean alongX = facing.getAxis() == Axis.X; + boolean alongZ = facing.getAxis() == Axis.Z; if (downward || beltSlope == BeltSlope.VERTICAL && axisDirection == AxisDirection.POSITIVE) { boolean b = start; @@ -89,8 +90,7 @@ public class BeltRenderer extends SafeTileEntityRenderer { beltBuffer.setupInstance(data -> { float speed = te.getSpeed(); - if (diagonal && (downward ^ alongX) || !sideways && !diagonal && alongX - || sideways && axisDirection == AxisDirection.NEGATIVE) + if (((axisDirection == AxisDirection.NEGATIVE) ^ upward) ^ ((alongX && !diagonal) || (alongZ && diagonal))) speed = -speed; float horizontalAngle = facing.getHorizontalAngle();