Skip to content

Commit 916e0a4

Browse files
committed
build: [mr] publish fix x2
1 parent d79a85a commit 916e0a4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ publishMods {
6666
changelog = rootProject.file("CHANGELOG.md").readText()
6767

6868
displayName = "[${mod.loader}-${mod.minecraftVersion}] ${mod.name} (v.${mod.version})"
69-
version = "${mod.version}+mc${mod.minecraftVersion}"
69+
version = "${mod.version}+mc${mod.minecraftVersion}-${mod.loader}"
7070
modLoaders.add(mod.loader)
7171

7272
val modrinthProject: String? = if (mod.hasProp("publish.modrinth.project_id")) mod.prop("publish.modrinth.project_id") else null
@@ -81,6 +81,8 @@ publishMods {
8181
projectId = modrinthProject
8282
accessToken = modrinthToken
8383

84+
version = "${mod.version}+mc${mod.minecraftVersion}-${mod.loader}"
85+
8486
if (mod.hasProp("publish.modrinth.$dependType.depends")) {
8587
val depends = mod.prop("publish.modrinth.$dependType.depends").split(',')
8688
requires(*depends.toTypedArray())

0 commit comments

Comments
 (0)