Patch rotation glitch

This commit is contained in:
cyberpwn committed 2021-08-18 01:24:17 -04:00
1 parent a669fcba7a
commit 3e30994541
2 files changed
+6 -2

No files matched your search

@@ -33,6 +33,7 @@ import lombok.experimental.Accessors;
public class IrisAxisRotationClamp {
@Desc("Should this axis be rotated at all?")
private boolean enabled = false;
private transient boolean forceLock = false;
@Required
@@ -72,7 +73,7 @@ public class IrisAxisRotationClamp {
public double getRadians(int rng) {
if (forceLock) {
return Math.toRadians(max);
return Math.toRadians(Math.ceil(Math.abs((max % 360D))));
}
if (isUnlimited()) {