aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/GuiRenderUtils.kt
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-09-24 01:16:31 +1000
committerGitHub <noreply@github.com>2024-09-23 17:16:31 +0200
commit2eed7efac2dab7ec54043d188d814b17052cebdd (patch)
tree118428ce5d5ef9b2c463e9fa3b7ecc93e4913daa /src/main/java/at/hannibal2/skyhanni/utils/GuiRenderUtils.kt
parentf71458b10781f366d6220b662dba42abe0aa80b3 (diff)
downloadskyhanni-2eed7efac2dab7ec54043d188d814b17052cebdd.tar.gz
skyhanni-2eed7efac2dab7ec54043d188d814b17052cebdd.tar.bz2
skyhanni-2eed7efac2dab7ec54043d188d814b17052cebdd.zip
Backend: Replace round and roundToPrecision with roundTo (#1931)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/GuiRenderUtils.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/GuiRenderUtils.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/GuiRenderUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/GuiRenderUtils.kt
index ba1081a5f..121b9cce3 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/GuiRenderUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/GuiRenderUtils.kt
@@ -3,8 +3,8 @@ package at.hannibal2.skyhanni.utils
import at.hannibal2.skyhanni.config.features.skillprogress.SkillProgressBarConfig
import at.hannibal2.skyhanni.features.chroma.ChromaShaderManager
import at.hannibal2.skyhanni.features.chroma.ChromaType
-import at.hannibal2.skyhanni.utils.LorenzUtils.round
import at.hannibal2.skyhanni.utils.NumberUtil.fractionOf
+import at.hannibal2.skyhanni.utils.NumberUtil.roundTo
import at.hannibal2.skyhanni.utils.RenderUtils.HorizontalAlignment
import at.hannibal2.skyhanni.utils.renderables.Renderable
import net.minecraft.client.Minecraft
@@ -204,7 +204,7 @@ object GuiRenderUtils {
scale = scale, horizontalAlign = HorizontalAlignment.LEFT,
),
Renderable.string(
- "§2${(percent * 100).round(1)}%",
+ "§2${(percent * 100).roundTo(1)}%",
scale = scale,
horizontalAlign = HorizontalAlignment.RIGHT,
),