Don't add a 0 to the clock when seconds are equal to 10 or higher
This commit is contained in:
parent
82e05af001
commit
731e992689
|
@ -49,7 +49,7 @@ object Storage {
|
||||||
if (clock) {
|
if (clock) {
|
||||||
with(Clock.System.now().toLocalDateTime(currentTimezone)) {
|
with(Clock.System.now().toLocalDateTime(currentTimezone)) {
|
||||||
FontUtil.drawScaled(it.first() as PoseStack,
|
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,
|
5.0, 5.0,
|
||||||
0.85F, color = 0xe69500
|
0.85F, color = 0xe69500
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue