Don't add a 0 to the clock when seconds are equal to 10 or higher

This commit is contained in:
Username404-59 2021-05-07 12:13:53 +02:00
parent 82e05af001
commit 731e992689
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -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
)