You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/kotlin/com/github/subat0m1c/hatecheaters/utils/ChatUtils.kt
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ import me.odinmain.utils.skyblock.modMessage as odinModMessage
8
8
importme.odinmain.utils.render.getMCTextWidth
9
9
importme.odinmain.utils.runOnMCThread
10
10
importme.odinmain.utils.skyblock.createClickStyle
11
+
importme.odinmain.utils.toFixed
11
12
importnet.minecraft.event.ClickEvent
12
13
importnet.minecraft.event.HoverEvent
13
14
importnet.minecraft.util.ChatComponentText
@@ -139,7 +140,7 @@ object ChatUtils {
139
140
}
140
141
141
142
inlinevalDouble.truncate:String get() =when {
142
-
this>=1_000_000_000->"${String.format("%.2f", this/1_000_000_000)}b"// this >= 1_000_000_000 -> "${(this / 1_000_000_000).toFixed()}b" use this after full update to beta17
0 commit comments