aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorObsidian <108832807+Obsidianninja11@users.noreply.github.com>2023-10-14 05:46:55 -0800
committerGitHub <noreply@github.com>2023-10-14 15:46:55 +0200
commit01f95e0ed4106ee4cd76384e1437fdfdc38b0a0d (patch)
tree246cabf02af353ed96807c6b5c6c2ead425b65d3 /src
parent18ceefa5c2cede0a7c287f263a9ca7a8613932f0 (diff)
downloadskyhanni-01f95e0ed4106ee4cd76384e1437fdfdc38b0a0d.tar.gz
skyhanni-01f95e0ed4106ee4cd76384e1437fdfdc38b0a0d.tar.bz2
skyhanni-01f95e0ed4106ee4cd76384e1437fdfdc38b0a0d.zip
Fixed scientific notation at small angles (#573)
Changed yaw/pitch display to not show scientific notations at very small numbers. #573
Diffstat (limited to 'src')
-rwxr-xr-xsrc/main/java/at/hannibal2/skyhanni/features/garden/GardenYawAndPitch.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenYawAndPitch.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenYawAndPitch.kt
index 22152efa7..f253c4800 100755
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenYawAndPitch.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenYawAndPitch.kt
@@ -39,8 +39,8 @@ class GardenYawAndPitch {
if (!config.showAlways && lastChange.passedSince() > config.timeout.seconds) return
- val yawText = yaw.round(config.yawPrecision)
- val pitchText = pitch.round(config.pitchPrecision)
+ val yawText = yaw.round(config.yawPrecision).toBigDecimal().toPlainString()
+ val pitchText = pitch.round(config.pitchPrecision).toBigDecimal().toPlainString()
val displayList = listOf(
"§aYaw: §f$yawText",
"§aPitch: §f$pitchText",