Skip to content

Commit

Permalink
Fix display name in modrinth publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
2No2Name committed Jan 16, 2025
1 parent 0aace40 commit bd23ea1
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ publishMods {
def fabric_mod_version = mod_version + "-fabric"
def fabric_suffix = "for Fabric"
def displayNamePrefix = project.property('mod_name').toString()
def cfDisplayNamePrefix = displayNamePrefix + " " + mod_version
def mrDisplayNamePrefix = displayNamePrefix + " " + project.property('minecraft_version').toString()

// CurseForge options used by both Fabric and Forge
def cfOptions = curseforgeOptions {
Expand All @@ -113,8 +115,6 @@ publishMods {
} else {
minecraftVersions.add(project.property('minecraft_version').toString())
}

displayNamePrefix = displayNamePrefix + " " + mod_version
}

// Modrinth options used by both Fabric and Forge
Expand All @@ -131,9 +131,6 @@ publishMods {
} else {
minecraftVersions.add(project.property('minecraft_version').toString())
}

displayNamePrefix = displayNamePrefix + " " + project.property('minecraft_version').toString()

}

// Fabric specific options for CurseForge
Expand All @@ -142,7 +139,7 @@ publishMods {
modLoaders.add("fabric")
modLoaders.add("quilt")
version = fabric_mod_version
displayName = displayNamePrefix + " " + fabric_suffix
displayName = cfDisplayNamePrefix + " " + fabric_suffix
}

// Fabric specific options for Modrinth
Expand All @@ -151,7 +148,7 @@ publishMods {
modLoaders.add("fabric")
modLoaders.add("quilt")
version = fabric_mod_version
displayName = displayNamePrefix + " " + fabric_suffix
displayName = mrDisplayNamePrefix + " " + fabric_suffix
}
}

Expand Down

0 comments on commit bd23ea1

Please sign in to comment.