Skip to content

Commit

Permalink
remove java version
Browse files Browse the repository at this point in the history
  • Loading branch information
alvindimas05 committed Aug 19, 2024
1 parent 95464cf commit 225de8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ lateinit var versionName: String

task<Exec>("env") {
minecraftVersion = System.getenv("MC_VERSION") ?: "1.21.1"
javaVersion = (System.getenv("JAVA_VERSION") ?: "21").toInt()
javaVersion = 21
versionName = minecraftVersion

if (minecraftVersion == "legacy"){
minecraftVersion = "1.20.3"
javaVersion = 17
javaVersion = 21
versionName = "legacy"
}
}
Expand Down

0 comments on commit 225de8f

Please sign in to comment.