mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-13 05:54:17 +01:00
belts scroll the right way, vertical belts still aren't rotated correctly
This commit is contained in:
parent
c9feda18d6
commit
5144aa6e63
@ -65,6 +65,7 @@ public class BeltRenderer extends SafeTileEntityRenderer<BeltTileEntity> {
|
|||||||
boolean end = part == BeltPart.END;
|
boolean end = part == BeltPart.END;
|
||||||
boolean sideways = beltSlope == BeltSlope.SIDEWAYS;
|
boolean sideways = beltSlope == BeltSlope.SIDEWAYS;
|
||||||
boolean alongX = facing.getAxis() == Axis.X;
|
boolean alongX = facing.getAxis() == Axis.X;
|
||||||
|
boolean alongZ = facing.getAxis() == Axis.Z;
|
||||||
|
|
||||||
if (downward || beltSlope == BeltSlope.VERTICAL && axisDirection == AxisDirection.POSITIVE) {
|
if (downward || beltSlope == BeltSlope.VERTICAL && axisDirection == AxisDirection.POSITIVE) {
|
||||||
boolean b = start;
|
boolean b = start;
|
||||||
@ -89,8 +90,7 @@ public class BeltRenderer extends SafeTileEntityRenderer<BeltTileEntity> {
|
|||||||
|
|
||||||
beltBuffer.setupInstance(data -> {
|
beltBuffer.setupInstance(data -> {
|
||||||
float speed = te.getSpeed();
|
float speed = te.getSpeed();
|
||||||
if (diagonal && (downward ^ alongX) || !sideways && !diagonal && alongX
|
if (((axisDirection == AxisDirection.NEGATIVE) ^ upward) ^ ((alongX && !diagonal) || (alongZ && diagonal)))
|
||||||
|| sideways && axisDirection == AxisDirection.NEGATIVE)
|
|
||||||
speed = -speed;
|
speed = -speed;
|
||||||
|
|
||||||
float horizontalAngle = facing.getHorizontalAngle();
|
float horizontalAngle = facing.getHorizontalAngle();
|
||||||
|
Loading…
Reference in New Issue
Block a user