Skip to content

Commit

Permalink
Fix KotlinForForge versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Deftu committed Nov 30, 2023
1 parent d11d14f commit cdba9e9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/main/kotlin/dev/deftu/gradle/GameInfo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,14 @@ object GameInfo {
mcpMappings[mcVersion]

fun fetchKotlinForForgeVersion(mcVersion: Int): String {
return if (mcVersion >= 1_19_02) {
"4.3.0"
} else if (mcVersion >= 1_17_00) {
return if (mcVersion >= 1_19_03) {
"4.7.0"
} else if (mcVersion >= 1_18_00) {
"3.12.0"
} else if (mcVersion >= 1_17_00) {
"2.2.0"
} else if (mcVersion >= 1_14_04) {
"2.0.1"
} else "1.16.0"
"1.17.0"
} else error("Kotlin for Forge is not supported for $mcVersion")
}
}

0 comments on commit cdba9e9

Please sign in to comment.