aboutsummaryrefslogtreecommitdiff
path: root/sharedVariables/src
diff options
context:
space:
mode:
authorDavid Cole <40234707+DavidArthurCole@users.noreply.github.com>2024-09-26 03:56:44 -0400
committerGitHub <noreply@github.com>2024-09-26 09:56:44 +0200
commit092a29dd8b13c2b04b0b7c259446ab697201dd5e (patch)
treef3704e259d34bfccef083834cb9106578695a694 /sharedVariables/src
parente90fd65559ef551b29de7d28f4fea3a46cc2a4e6 (diff)
downloadskyhanni-092a29dd8b13c2b04b0b7c259446ab697201dd5e.tar.gz
skyhanni-092a29dd8b13c2b04b0b7c259446ab697201dd5e.tar.bz2
skyhanni-092a29dd8b13c2b04b0b7c259446ab697201dd5e.zip
Backend: Dekekt (#2547)
Co-authored-by: Linnea Gräf <nea@nea.moe> Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Co-authored-by: Cal <cwolfson58@gmail.com>
Diffstat (limited to 'sharedVariables/src')
-rw-r--r--sharedVariables/src/MinecraftVersion.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/sharedVariables/src/MinecraftVersion.kt b/sharedVariables/src/MinecraftVersion.kt
index 7384c8fbd..796cc0d70 100644
--- a/sharedVariables/src/MinecraftVersion.kt
+++ b/sharedVariables/src/MinecraftVersion.kt
@@ -16,6 +16,9 @@ enum class MinecraftVersion(
val javaLanguageVersion = JavaLanguageVersion.of(javaVersion)
+ val formattedJavaLanguageVersion: String
+ get() = if (javaVersion <= 8) "1.$javaVersion" else javaVersion.toString()
+
val versionNumber = run {
val parts = versionName.split('.').mapTo(mutableListOf()) { it.toInt() }
if (parts.size == 2) parts.add(0)