Skip to content

Commit d050699

Browse files
authored
Fix supported versions in publishing for 1.20.1
1 parent 17f3ed0 commit d050699

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

gradle/publishing.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ modrinth {
88
versionNumber = project.version
99
versionType = project.ext.versionBasedReleaseType
1010
uploadFile = tasks.fullJar
11-
gameVersions = [mc_version]
11+
// Hard-coded as build scripts drastically change post 1.20.1 anyways
12+
gameVersions = [mc_version, "1.20.1"]
1213
loaders = ['forge']
1314
changelog.set(tasks.changelog.output.map {
1415
it.asFile.text
@@ -31,6 +32,8 @@ publishCurseForge {
3132
modFile.addJavaVersion 'Java 17'
3233
modFile.addModLoader 'Forge'
3334
modFile.addGameVersion "$mc_version"
35+
// Hard-coded as build scripts drastically change post 1.20.1 anyways
36+
modFile.addGameVersion "1.20.1"
3437

3538
dependsOn(tasks.fullJar)
3639
finalizedBy(':makeReadme')
@@ -149,4 +152,4 @@ static Element createDependency(Document owner, String group, String name, Strin
149152
sub.appendChild scopeEl
150153

151154
return sub
152-
}
155+
}

0 commit comments

Comments
 (0)