mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-11-21 11:55:15 +01:00
Update Kotlin, use non deprecate method
This commit is contained in:
parent
36d3dd9a6d
commit
0b21cf356d
@ -3,7 +3,7 @@ plugins {
|
||||
id("com.github.ben-manes.versions") version "0.36.0"
|
||||
id("com.palantir.git-version") version "0.12.3"
|
||||
application
|
||||
kotlin("jvm") version "1.4.20"
|
||||
kotlin("jvm") version "1.4.21"
|
||||
}
|
||||
|
||||
application {
|
||||
|
@ -280,7 +280,7 @@ class VIAaaSAddress {
|
||||
} catch (e: NumberFormatException) {
|
||||
val closest = ProtocolVersion.getClosest(arg.replace("_", "."))
|
||||
if (closest != null) {
|
||||
protocol = closest.id
|
||||
protocol = closest.version
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user