File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ publishMods {
115115 changelog = createChangelog()
116116 version = " ${ mod_version} "
117117 type = STABLE
118+ def compatibleMcVersions = additional_compatible_mc_versions. split(' ,' )
118119
119120
120121 def createOptions = (String platform) -> {
@@ -128,12 +129,18 @@ publishMods {
128129 def curseForgeOptions = curseforgeOptions {
129130 accessToken = providers. environmentVariable(" CURSE_TOKEN" )
130131 minecraftVersions. add(" ${ minecraft_version} " )
132+ compatibleMcVersions. each { mcVer ->
133+ minecraftVersions. add(mcVer. trim())
134+ }
131135 javaVersions. add(JavaVersion . VERSION_25 )
132136 }
133137
134138 def modrinthOptions = modrinthOptions {
135139 accessToken = providers. environmentVariable(" MODRINTH_TOKEN" )
136140 minecraftVersions. add(" ${ minecraft_version} " )
141+ compatibleMcVersions. each { mcVer ->
142+ minecraftVersions. add(mcVer. trim())
143+ }
137144 }
138145
139146 curseforge(" curseforgeNeoforge" ) {
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ mod_description=Modpack compatibility checker for servers
3030mod_github =https://github.com/nanite/BetterCompatibilityChecker
3131minecraft_version_range_mvn =[26.1.0,)
3232minecraft_version_range_sem =>=26.1.0
33+ additional_compatible_mc_versions =26.1,26.1.1
3334
3435# Publishing
3536curseforge_id =551894
You can’t perform that action at this time.
0 commit comments