diff --git a/API-Modrinth/src/main/kotlin/com/github/p03w/modifold/modrinth_api/ModrinthProjectCreate.kt b/API-Modrinth/src/main/kotlin/com/github/p03w/modifold/modrinth_api/ModrinthProjectCreate.kt index 54e395a..3e0fffe 100644 --- a/API-Modrinth/src/main/kotlin/com/github/p03w/modifold/modrinth_api/ModrinthProjectCreate.kt +++ b/API-Modrinth/src/main/kotlin/com/github/p03w/modifold/modrinth_api/ModrinthProjectCreate.kt @@ -42,9 +42,9 @@ data class ModrinthProjectCreate private constructor( curseforgeProject.categories ), discord_url = ModifoldArgs.args.discordServer.takeIf { it.isNotBlank() }, - issues_url = curseforgeProject.links.issuesUrl.takeIf { it.isNotBlank() }, - source_url = curseforgeProject.links.sourceUrl.takeIf { it.isNotBlank() }, - wiki_url = curseforgeProject.links.wikiUrl.takeIf { it.isNotBlank() } + issues_url = curseforgeProject.links.issuesUrl.takeIf { it?.isNotBlank() == true }, + source_url = curseforgeProject.links.sourceUrl.takeIf { it?.isNotBlank() == true }, + wiki_url = curseforgeProject.links.wikiUrl.takeIf { it?.isNotBlank() == true } ) } } diff --git a/Schema-Curseforge/src/main/kotlin/com/github/p03w/modifold/curseforge_schema/CurseforgeLinks.kt b/Schema-Curseforge/src/main/kotlin/com/github/p03w/modifold/curseforge_schema/CurseforgeLinks.kt index 995cbde..d6d61f3 100644 --- a/Schema-Curseforge/src/main/kotlin/com/github/p03w/modifold/curseforge_schema/CurseforgeLinks.kt +++ b/Schema-Curseforge/src/main/kotlin/com/github/p03w/modifold/curseforge_schema/CurseforgeLinks.kt @@ -1,8 +1,8 @@ package com.github.p03w.modifold.curseforge_schema data class CurseforgeLinks( - val websiteUrl: String, - val wikiUrl: String, - val issuesUrl: String, - val sourceUrl: String + val websiteUrl: String?, + val wikiUrl: String?, + val issuesUrl: String?, + val sourceUrl: String? ) diff --git a/build.gradle.kts b/build.gradle.kts index 54c08c5..1ae8daa 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -9,7 +9,7 @@ plugins { } group = "com.github.p03w" -version = "2.1.2" +version = "2.1.3" repositories { mavenCentral()