Fix version check

This commit is contained in:
Him188 2020-03-06 20:40:48 +08:00
parent 8c78c4f99f
commit 53e264b755

View File

@ -69,7 +69,7 @@ object ConsoleUpdator{
.map { it.value.drop(1).dropLast(1) }
.maxBy {
it.split('.').foldRightIndexed(0) { index: Int, s: String, acc: Int ->
acc + 100.0.pow(index).toInt() + (s.toIntOrNull() ?: 0)
acc + 100.0.pow(2 - index).toInt() * (s.toIntOrNull() ?: 0)
}
}!!
} catch (e: Exception) {