From 22c71dae6044cf6741b1fe797e985a0f483fa870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=87=E8=91=A9=E3=81=AE=E7=81=B5=E6=A2=A6?= Date: Wed, 18 Sep 2024 10:52:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A7=E6=95=B0=E6=8D=AE=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=20#294?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/Statistics.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/Statistics.kt b/src/main/kotlin/Statistics.kt index 27ca54b0..95c2831c 100644 --- a/src/main/kotlin/Statistics.kt +++ b/src/main/kotlin/Statistics.kt @@ -319,7 +319,7 @@ object Statistics { val game = a[1].toInt() val forbid = a.getOrNull(5)?.toLong() ?: 0 val title = a.getOrNull(6) ?: "" - val lt = a.getOrNull(7)?.toLong() ?: 0 + val lt = (a.getOrNull(7)?.toLong() ?: 0).let { if (it == 0L) System.currentTimeMillis() else it } val energy = a.getOrNull(8)?.toInt() ?: 0 val maxScore = a.getOrNull(9)?.toInt() ?: score val p = PlayerInfo(name, score, pwd, win, game, forbid, title, lt, energy, maxScore)