mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
reduce faststat java major version
This commit is contained in:
parent
6a4c861eab
commit
6afe51acca
1 changed files with 2 additions and 2 deletions
|
|
@ -32,10 +32,10 @@ object MetricsUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(metricType.allowFastStats) {
|
if(metricType.allowFastStats) {
|
||||||
// Check support java 21 (metric only work in java 21)
|
// Check support java 17 (metric only work in java 17)
|
||||||
val versionParts = System.getProperty("java.version").split(".")
|
val versionParts = System.getProperty("java.version").split(".")
|
||||||
val majorVersion = versionParts[0].toInt()
|
val majorVersion = versionParts[0].toInt()
|
||||||
if (majorVersion >= 21) try {
|
if (majorVersion >= 17) try {
|
||||||
faststatTelemetry(plugin, nmsType, isAlpha)
|
faststatTelemetry(plugin, nmsType, isAlpha)
|
||||||
} catch (_: Throwable) {}
|
} catch (_: Throwable) {}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue