From c878970afb1bf76d3a1aa6b4ca8e2bb309cc2dde Mon Sep 17 00:00:00 2001 From: Cedric Date: Tue, 29 Oct 2024 22:46:45 +0100 Subject: [PATCH] fix: rotation in signalbox --- .../java/com/troblecodings/signals/guis/UISignalBoxTile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/troblecodings/signals/guis/UISignalBoxTile.java b/src/main/java/com/troblecodings/signals/guis/UISignalBoxTile.java index 586d62b88..0309300d2 100644 --- a/src/main/java/com/troblecodings/signals/guis/UISignalBoxTile.java +++ b/src/main/java/com/troblecodings/signals/guis/UISignalBoxTile.java @@ -87,7 +87,7 @@ private void localAdd(final ModeSet modeSet) { final UIEntity entity = new UIEntity(); if (!modeSet.rotation.equals(Rotation.NONE)) { final UIRotate rotation = new UIRotate(); - rotation.setRotateZ(modeSet.rotation.ordinal() * ((float) 90)); + rotation.setRotateZ(modeSet.rotation.ordinal() * ((float) Math.PI / 2.0f)); entity.add(rotation); } entity.add(new UIIndependentTranslate(0, 0, modeSet.mode.translation + 1));