Skip to content

Commit

Permalink
Platform: Support Minecraft 1.20.5
Browse files Browse the repository at this point in the history
Minecraft 1.20.5 requires Java 21
  • Loading branch information
DJtheRedstoner committed Apr 23, 2024
1 parent 023bf26 commit b521307
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ data class Platform(
val isLegacyForge = loader == Loader.Forge && mcVersion < 11400

val javaVersion = when {
mcVersion >= 12005 -> JavaVersion.VERSION_21
mcVersion >= 11800 -> JavaVersion.VERSION_17
mcVersion >= 11700 -> JavaVersion.VERSION_16
else -> JavaVersion.VERSION_1_8
Expand Down

0 comments on commit b521307

Please sign in to comment.