mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-11-25 12:35:36 +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.github.ben-manes.versions") version "0.36.0"
|
||||||
id("com.palantir.git-version") version "0.12.3"
|
id("com.palantir.git-version") version "0.12.3"
|
||||||
application
|
application
|
||||||
kotlin("jvm") version "1.4.20"
|
kotlin("jvm") version "1.4.21"
|
||||||
}
|
}
|
||||||
|
|
||||||
application {
|
application {
|
||||||
|
@ -280,7 +280,7 @@ class VIAaaSAddress {
|
|||||||
} catch (e: NumberFormatException) {
|
} catch (e: NumberFormatException) {
|
||||||
val closest = ProtocolVersion.getClosest(arg.replace("_", "."))
|
val closest = ProtocolVersion.getClosest(arg.replace("_", "."))
|
||||||
if (closest != null) {
|
if (closest != null) {
|
||||||
protocol = closest.id
|
protocol = closest.version
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user