From 092a29dd8b13c2b04b0b7c259446ab697201dd5e Mon Sep 17 00:00:00 2001 From: David Cole <40234707+DavidArthurCole@users.noreply.github.com> Date: Thu, 26 Sep 2024 03:56:44 -0400 Subject: Backend: Dekekt (#2547) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Linnea Gräf Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Co-authored-by: Cal --- sharedVariables/src/MinecraftVersion.kt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sharedVariables/src') 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) -- cgit