From 731e992689bfe8537788f743e6f9f6315bea4aac Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Fri, 7 May 2021 12:13:53 +0200 Subject: [PATCH] Don't add a 0 to the clock when seconds are equal to 10 or higher --- .../main/kotlin/fr/username404/snowygui/misc/addComponents.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/kotlin/fr/username404/snowygui/misc/addComponents.kt b/common/src/main/kotlin/fr/username404/snowygui/misc/addComponents.kt index 985888f..4a790d0 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/misc/addComponents.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/misc/addComponents.kt @@ -49,7 +49,7 @@ object Storage { if (clock) { with(Clock.System.now().toLocalDateTime(currentTimezone)) { FontUtil.drawScaled(it.first() as PoseStack, - "$hour:$minute:${second.let { if (it > 10) it else "0$it" }}", + "$hour:$minute:${second.let { if (it >= 10) it else "0$it" }}", 5.0, 5.0, 0.85F, color = 0xe69500 )